99
1010jobs :
1111 nix-tests :
12+ strategy :
13+ matrix :
14+ python-version : ["10","11","12","13"]
1215 runs-on : ubuntu-latest
1316 steps :
1417 - uses : actions/checkout@v4
@@ -17,30 +20,31 @@ jobs:
1720 nix_path : nixpkgs=channel:nixos-25.05
1821 extra_nix_config : |
1922 experimental-features = nix-command flakes
20- - name : Run tests via Nix
21- run : nix develop --command just test
23+ - name : Build Rust module and run tests via Nix
24+ run : nix develop --command bash -lc ' just venv ${{matrix.python-version}} dev test'
2225
23- rust-tests :
24- name : Rust module test on ${{ matrix.os }} (Python ${{ matrix.python-version }})
25- runs-on : ${{ matrix.os }}
26- strategy :
27- matrix :
28- os : [ubuntu-latest, macos-latest, windows-latest]
29- python-version : ["10", "11", "12", "13"]
30- steps :
31- - uses : actions/checkout@v4
32- - uses : actions/setup-python@v5
33- with :
34- python-version : 3.${{ matrix.python-version }}
35- - uses : astral-sh/setup-uv@v4
36- - uses : messense/maturin-action@v1
37- with :
38- command : build
39- args : --interpreter python3.${{ matrix.python-version }} -m crates/codetracer-python-recorder/Cargo.toml --release
40- - name : Install and test built wheel with uv (pytest)
41- shell : bash
42- run : |
43- v=${{matrix.python-version}}
44- file=(crates/codetracer-python-recorder/target/wheels/*.whl)
45- file="${file[0]}"
46- uv run -p python3.$v --with "${file}" --with pytest -- python -m pytest crates/codetracer-python-recorder/test -q
26+ # rust-tests:
27+ # name: Rust module test on ${{ matrix.os }} (Python ${{ matrix.python-version }})
28+ # runs-on: ${{ matrix.os }}
29+ # strategy:
30+ # matrix:
31+ # os: [ubuntu-latest, macos-latest, windows-latest]
32+ # python-version: ["10", "11", "12", "13"]
33+ # steps:
34+ # - uses: actions/checkout@v4
35+ # - uses: actions/setup-python@v5
36+ # with:
37+ # python-version: 3.${{ matrix.python-version }}
38+ # - uses: astral-sh/setup-uv@v4
39+ # - uses: messense/maturin-action@v1
40+ # with:
41+ # command: build
42+ # args: --interpreter python3.${{ matrix.python-version }} -m crates/codetracer-python-recorder/Cargo.toml --release
43+ # - name: Install and test built wheel with uv (pytest)
44+ # shell: bash
45+ # run: |
46+ # v=${{matrix.python-version}}
47+ # file=(crates/codetracer-python-recorder/target/wheels/*.whl)
48+ # file="${file[0]}"
49+ # uv run -p python3.$v --with "${file}" --with pytest -- \
50+ # python -m pytest crates/codetracer-python-recorder/test tests/test_codetracer_api.py -q
0 commit comments