Debian Codegraph @

.github/workflows/github-actions.yml

raw
1 name: build
2 on: [push, pull_request, workflow_dispatch]
3 jobs:
4 test:
5 name: ${{ matrix.name }}
6 runs-on: ${{ matrix.os }}
7 timeout-minutes: 30
8 strategy:
9 fail-fast: false
10 matrix:
11 include:
12 - name: 'check'
13 python: '3.13'
14 tox_env: 'check'
15 os: 'ubuntu-latest'
16 - name: 'docs'
17 python: '3.13'
18 tox_env: 'docs'
19 os: 'ubuntu-latest'
20 - name: 'py39 (ubuntu/x64)'
21 python: '3.9'
22 python_arch: 'x64'
23 tox_env: 'py39'
24 os: 'ubuntu-latest'
25 cover: true
26 - name: 'py39 (windows/x64)'
27 python: '3.9'
28 python_arch: 'x64'
29 tox_env: 'py39'
30 os: 'windows-latest'
31 cover: true
32 - name: 'py39 (macos/arm64)'
33 python: '3.9'
34 python_arch: 'arm64'
35 tox_env: 'py39'
36 os: 'macos-latest'
37 cover: true
38 - name: 'py310 (ubuntu/x64)'
39 python: '3.10'
40 python_arch: 'x64'
41 tox_env: 'py310'
42 os: 'ubuntu-latest'
43 cover: true
44 - name: 'py310 (windows/x64)'
45 python: '3.10'
46 python_arch: 'x64'
47 tox_env: 'py310'
48 os: 'windows-latest'
49 cover: true
50 - name: 'py310 (macos/arm64)'
51 python: '3.10'
52 python_arch: 'arm64'
53 tox_env: 'py310'
54 os: 'macos-latest'
55 cover: true
56 - name: 'py311 (ubuntu/x64)'
57 python: '3.11'
58 python_arch: 'x64'
59 tox_env: 'py311'
60 os: 'ubuntu-latest'
61 cover: true
62 - name: 'py311 (windows/x64)'
63 python: '3.11'
64 python_arch: 'x64'
65 tox_env: 'py311'
66 os: 'windows-latest'
67 cover: true
68 - name: 'py311 (macos/arm64)'
69 python: '3.11'
70 python_arch: 'arm64'
71 tox_env: 'py311'
72 os: 'macos-latest'
73 cover: true
74 - name: 'py312 (ubuntu/x64)'
75 python: '3.12'
76 python_arch: 'x64'
77 tox_env: 'py312'
78 os: 'ubuntu-latest'
79 cover: true
80 - name: 'py312 (windows/x64)'
81 python: '3.12'
82 python_arch: 'x64'
83 tox_env: 'py312'
84 os: 'windows-latest'
85 cover: true
86 - name: 'py312 (macos/arm64)'
87 python: '3.12'
88 python_arch: 'arm64'
89 tox_env: 'py312'
90 os: 'macos-latest'
91 cover: true
92 - name: 'py313 (ubuntu/x64)'
93 python: '3.13'
94 python_arch: 'x64'
95 tox_env: 'py313'
96 os: 'ubuntu-latest'
97 cover: true
98 - name: 'py313 (windows/x64)'
99 python: '3.13'
100 python_arch: 'x64'
101 tox_env: 'py313'
102 os: 'windows-latest'
103 cover: true
104 - name: 'py313 (macos/arm64)'
105 python: '3.13'
106 python_arch: 'arm64'
107 tox_env: 'py313'
108 os: 'macos-latest'
109 cover: true
110 - name: 'py314 (ubuntu/x64)'
111 python: '3.14'
112 python_arch: 'x64'
113 tox_env: 'py314'
114 os: 'ubuntu-latest'
115 cover: true
116 - name: 'py314 (windows/x64)'
117 python: '3.14'
118 python_arch: 'x64'
119 tox_env: 'py314'
120 os: 'windows-latest'
121 cover: true
122 - name: 'py314 (macos/arm64)'
123 python: '3.14'
124 python_arch: 'arm64'
125 tox_env: 'py314'
126 os: 'macos-latest'
127 cover: true
128 - name: 'pypy39 (ubuntu/x64)'
129 python: 'pypy-3.9'
130 python_arch: 'x64'
131 tox_env: 'pypy39'
132 os: 'ubuntu-latest'
133 cover: true
134 - name: 'pypy39 (windows/x64)'
135 python: 'pypy-3.9'
136 python_arch: 'x64'
137 tox_env: 'pypy39'
138 os: 'windows-latest'
139 cover: true
140 - name: 'pypy39 (macos/arm64)'
141 python: 'pypy-3.9'
142 python_arch: 'arm64'
143 tox_env: 'pypy39'
144 os: 'macos-latest'
145 cover: true
146 - name: 'pypy310 (ubuntu/x64)'
147 python: 'pypy-3.10'
148 python_arch: 'x64'
149 tox_env: 'pypy310'
150 os: 'ubuntu-latest'
151 cover: true
152 - name: 'pypy310 (windows/x64)'
153 python: 'pypy-3.10'
154 python_arch: 'x64'
155 tox_env: 'pypy310'
156 os: 'windows-latest'
157 cover: true
158 - name: 'pypy310 (macos/arm64)'
159 python: 'pypy-3.10'
160 python_arch: 'arm64'
161 tox_env: 'pypy310'
162 os: 'macos-latest'
163 cover: true
164 - name: 'pypy311 (ubuntu/x64)'
165 python: 'pypy-3.11'
166 python_arch: 'x64'
167 tox_env: 'pypy311'
168 os: 'ubuntu-latest'
169 cover: true
170 - name: 'pypy311 (windows/x64)'
171 python: 'pypy-3.11'
172 python_arch: 'x64'
173 tox_env: 'pypy311'
174 os: 'windows-latest'
175 cover: true
176 - name: 'pypy311 (macos/arm64)'
177 python: 'pypy-3.11'
178 python_arch: 'arm64'
179 tox_env: 'pypy311'
180 os: 'macos-latest'
181 cover: true
182 steps:
183 - uses: actions/checkout@v5
184 with:
185 fetch-depth: 0
186 - uses: actions/setup-python@v5
187 with:
188 python-version: ${{ matrix.python }}
189 architecture: ${{ matrix.python_arch }}
190 - name: install dependencies
191 run: |
192 python -mpip install --progress-bar=off -r ci/requirements.txt
193 virtualenv --version
194 pip --version
195 tox --version
196 pip list --format=freeze
197 - name: test
198 run: >
199 tox -e ${{ matrix.tox_env }} -v
200 - uses: coverallsapp/github-action@v2
201 if: matrix.cover
202 continue-on-error: true
203 with:
204 flag-name: ${{ matrix.name }}
205 parallel: true
206 - uses: codecov/codecov-action@v5
207 if: matrix.cover
208 with:
209 flags: ${{ matrix.name }}
210 token: ${{ secrets.CODECOV_TOKEN }}
211 verbose: true
212 finish:
213 needs: test
214 if: ${{ always() }}
215 runs-on: ubuntu-latest
216 steps:
217 - uses: coverallsapp/github-action@v2
218 with:
219 parallel-finished: true