Repository navigation
66 lines (60 loc) · 1.45 KB
/
Copy pathtests.yaml
File metadata and controls
66 lines (60 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Tests
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
PYTHON_VERSION: '3.10'
jobs:
unit:
name: Unit (${{ matrix.python-version }})
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
- python-version: '3.10'
tox-env: py310
- python-version: '3.11'
tox-env: py311
- python-version: '3.12'
tox-env: py312
- python-version: '3.13'
tox-env: py313
- python-version: '3.14'
tox-env: py314
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup-python-uv
with:
python-version: ${{ matrix.python-version }}
- name: Run unit tests
run: uv run --locked --extra dev tox run -e ${{ matrix.tox-env }}
coverage:
name: Coverage
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup-python-uv
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run coverage threshold
run: uv run --locked --extra dev tox run -e coverage
- name: Upload coverage report
uses: actions/upload-artifact@v7
with:
name: coverage-xml
path: coverage.xml
if-no-files-found: error