Skip to content

Commit db588f3

Browse files
Copilotnilp0inter
andcommitted
Update CI: use tox for tests and matrix for Python version verification
Co-authored-by: nilp0inter <1224006+nilp0inter@users.noreply.github.com>
1 parent 3ecc575 commit db588f3

1 file changed

Lines changed: 33 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: ["main"]
88

99
jobs:
10-
test:
10+
lint:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: read
@@ -21,9 +21,6 @@ jobs:
2121
with:
2222
nix_path: nixpkgs=channel:nixos-unstable
2323

24-
- name: Verify dev environment
25-
run: nix develop --command bash -c "uv --version && python3.11 --version"
26-
2724
- name: Sync dependencies
2825
run: nix develop --command bash -c "uv sync --extra dev"
2926

@@ -33,5 +30,36 @@ jobs:
3330
- name: Check types
3431
run: nix develop --command bash -c "uv run mypy src"
3532

33+
test:
34+
runs-on: ubuntu-latest
35+
permissions:
36+
contents: read
37+
strategy:
38+
matrix:
39+
include:
40+
- python: "3.11"
41+
tox-env: "py311"
42+
- python: "3.12"
43+
tox-env: "py312"
44+
- python: "3.13"
45+
tox-env: "py313"
46+
- python: "3.14"
47+
tox-env: "py314"
48+
49+
steps:
50+
- name: Checkout code
51+
uses: actions/checkout@v4
52+
53+
- name: Install Nix
54+
uses: cachix/install-nix-action@v27
55+
with:
56+
nix_path: nixpkgs=channel:nixos-unstable
57+
58+
- name: Verify dev environment
59+
run: nix develop --command bash -c "uv --version && python${{ matrix.python }} --version"
60+
61+
- name: Sync dependencies
62+
run: nix develop --command bash -c "uv sync --extra dev"
63+
3664
- name: Run tests
37-
run: nix develop --command bash -c "uv run pytest"
65+
run: nix develop --command bash -c "uv run tox -e ${{ matrix.tox-env }}"

0 commit comments

Comments
 (0)