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