Skip to content

Commit c2c7e54

Browse files
committed
ci: build rust module in nix tests and run API tests in matrix
1 parent df2942c commit c2c7e54

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
Implement the Python API described in the design document for the Rust-based module. Write tests. Don't actually implement tracing using `runtime_tracing` yet, just add placeholders.
22
--- FOLLOW UP TASK ---
3-
Implement the Python API described in the design document for the Rust-based module. Write tests. Don't actually implement tracing using runtime_tracing yet, just add placeholders.
3+
Implement the Python API described in the design document for the Rust-based module. Write tests. Don't actually implement tracing using runtime_tracing yet, just add placeholders.
4+
--- FOLLOW UP TASK ---
5+
The nix-tests task fails, because we haven't compiled the Rust module. The matrix rust tests currently don't run the new test, but they should.

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
nix_path: nixpkgs=channel:nixos-25.05
1818
extra_nix_config: |
1919
experimental-features = nix-command flakes
20-
- name: Run tests via Nix
21-
run: nix develop --command just test
20+
- name: Build Rust module and run tests via Nix
21+
run: nix develop --command bash -lc 'just build-rust && .venv/bin/python -m unittest discover -v'
2222

2323
rust-tests:
2424
name: Rust module test on ${{ matrix.os }} (Python ${{ matrix.python-version }})
@@ -43,4 +43,5 @@ jobs:
4343
v=${{matrix.python-version}}
4444
file=(crates/codetracer-python-recorder/target/wheels/*.whl)
4545
file="${file[0]}"
46-
uv run -p python3.$v --with "${file}" --with pytest -- python -m pytest crates/codetracer-python-recorder/test -q
46+
uv run -p python3.$v --with "${file}" --with pytest -- \
47+
python -m pytest crates/codetracer-python-recorder/test tests/test_codetracer_api.py -q

0 commit comments

Comments
 (0)