Debian Codegraph @

.github/workflows/test.yml

raw
1 ---
2 name: Tests
3 on:
4 push:
5 # This should disable running the workflow on tags, according to the
6 # on.<push|pull_request>.<branches|tags> GitHub Actions docs.
7 branches:
8 - "*"
9 pull_request:
10
11 jobs:
12
13 linux-tests:
14 runs-on: ${{ matrix.os }}
15 strategy:
16 fail-fast: false
17 matrix:
18 python-version:
19 - "3.8"
20 - "3.9"
21 - "3.10"
22 - "3.11"
23 - "3.12"
24 - "3.13"
25 - "3.13t"
26 - "3.14"
27 - "3.14t"
28 - "pypy-3.8"
29 - "pypy-3.9"
30 - "pypy-3.10"
31 os:
32 - ubuntu-24.04
33
34 steps:
35 - name: Checkout repos
36 uses: actions/checkout@v4
37
38 - name: Set up Python
39 uses: actions/setup-python@v5
40 with:
41 python-version: ${{matrix.python-version}}
42 allow-prereleases: true
43 architecture: x64
44
45 - name: Install Tox
46 run: pip install tox
47
48 - name: Run tests
49 run: tox -e ${{matrix.python-version}} -- -vrsx --color=yes
50
51
52 windows-tests:
53 runs-on: windows-latest
54 strategy:
55 fail-fast: false
56 matrix:
57 python-version:
58 - 3.8
59 - 3.9
60 - "3.10"
61 - "3.11"
62 - "3.12"
63 - "3.13"
64 - "3.13t"
65 - "3.14"
66 - "3.14t"
67 architecture: ['x64', 'x86']
68
69 steps:
70 - name: Checkout repos
71 uses: actions/checkout@v4
72
73 - name: Set up Python ${{matrix.python-version}}
74 uses: actions/setup-python@v5
75 with:
76 python-version: ${{matrix.python-version}}
77 allow-prereleases: true
78 architecture: ${{matrix.architecture}}
79
80 - name: Install Tox
81 run: pip install tox
82
83 - name: Run tests
84 run: tox -e ${{matrix.python-version}} -- -vrsx --color=yes
85
86
87 macos-tests:
88 runs-on: ${{ matrix.os }}
89 strategy:
90 fail-fast: false
91 matrix:
92 python-version:
93 - "3.11"
94 - "3.12"
95 - "3.13"
96 - "3.13t"
97 - "3.14"
98 - "3.14t"
99 os:
100 - macos-latest
101 include:
102 - python-version: 3.8
103 os: macos-13
104 - python-version: 3.9
105 os: macos-13
106 - python-version: "3.10"
107 os: macos-13
108
109 steps:
110 - name: Checkout repos
111 uses: actions/checkout@v4
112
113 - name: Set up Python ${{matrix.python-version}}
114 uses: actions/setup-python@v5
115 with:
116 python-version: ${{matrix.python-version}}
117 allow-prereleases: true
118
119 - name: Install Tox
120 run: pip install tox
121
122 - name: Run tests
123 run: tox -e ${{matrix.python-version}} -- -vrsx --color=yes
124
125
126 macos-native-python-test:
127 runs-on: macos-latest
128
129 steps:
130 - name: Checkout repos
131 uses: actions/checkout@v4
132
133 - name: Install Tox
134 run: xcrun python3 -m pip install tox
135
136 - name: Run tests
137 run: |
138 export XCODE_PYTHON=`xcrun python3 -c "import sys;print(sys.executable)"`
139 $XCODE_PYTHON -c "import sys; print(sys.version)"
140 $XCODE_PYTHON -m tox -e xcode -- -vrsx --color=yes