Skip to content

Commit 1f19eda

Browse files
committed
🧪 Run pytest in CI
1 parent b4ca9c2 commit 1f19eda

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/self-smoke-test-action.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,68 @@ jobs:
232232
- run: echo 'outputs=${{ toJSON(steps.check.outputs) }}'
233233
if: always()
234234

235+
tests:
236+
name: 🧪 Tests${{ '' }} # nest jobs under the same sidebar category
237+
238+
strategy:
239+
fail-fast: true
240+
matrix:
241+
python-version:
242+
# NOTE: The latest and the lowest supported Pythons are prioritized
243+
# NOTE: to improve the responsiveness. It's nice to see the most
244+
# NOTE: important results first.
245+
- 3.14
246+
- 3.13
247+
- 3.12
248+
- 3.11
249+
- >-
250+
3.10
251+
- ~3.15.0-0
252+
runner-vm-os:
253+
- ubuntu-24.04-arm
254+
- ubuntu-24.04
255+
toxenv:
256+
- py
257+
xfail:
258+
- false
259+
260+
uses: tox-dev/workflow/.github/workflows/reusable-tox.yml@617ca35caa695c572377861016677905e58a328c # yamllint disable-line rule:line-length
261+
with:
262+
check-name: >-
263+
🧪 🐍${{
264+
matrix.python-version
265+
}} @ ${{
266+
matrix.runner-vm-os
267+
}}
268+
job-dependencies-context: >- # context for hooks
269+
${{ toJSON(needs) }}
270+
python-version: >-
271+
${{ matrix.python-version }}
272+
job-dependencies-context: >- # context for hooks
273+
${{ toJSON(needs) }}
274+
runner-vm-os: >-
275+
${{ matrix.runner-vm-os }}
276+
timeout-minutes: 2
277+
toxenv: >-
278+
${{ matrix.toxenv }}
279+
# tox-provision-args: >-
280+
# --force-dep '...'
281+
tox-run-posargs: >-
282+
--cov-report=xml:.tox/.tmp/.test-results/pytest-${{
283+
matrix.python-version
284+
}}/cobertura.xml
285+
--junitxml=.tox/.tmp/.test-results/pytest-${{
286+
matrix.python-version
287+
}}/test.xml
288+
tox-rerun-posargs: >-
289+
--no-cov
290+
-vvvvv
291+
--lf
292+
# tox-tool-deps: tox
293+
xfail: false
294+
secrets:
295+
codecov-token: ${{ secrets.CODECOV_TOKEN }}
296+
235297
check:
236298
needs:
237299
- wait-for-success
@@ -242,6 +304,7 @@ jobs:
242304
- allow-failures-n-skips
243305
- allow-skips
244306
- allow-partials
307+
- tests
245308
if: always()
246309
runs-on: ubuntu-latest
247310
timeout-minutes: 2

0 commit comments

Comments
 (0)