Skip to content

Commit

Permalink
refactor CI workflow to run Rust, MaskBench, and Python guidance test…
Browse files Browse the repository at this point in the history
…s separately for improved logging and timing
  • Loading branch information
mmoskal committed Jan 25, 2025
1 parent 4e9da88 commit 80d1f25
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,17 @@ jobs:
- name: Install python test dependencies
run: ./scripts/install-deps.sh

- name: Run python guidance tests
run: ./scripts/test-guidance.sh
# these three steps are equivalent to just ./scripts/test-guidance.sh
# but we want to run them separately to get better timings/logs/etc

- name: Run Rust tests
run: ./scripts/test-guidance.sh --rust

- name: Run MaskBench
run: ./scripts/test-guidance.sh --mb

- name: Run Python Guidance tests
run: ./scripts/test-guidance.sh --py

- name: Build sdist
run: maturin build --sdist --zig
Expand Down
1 change: 1 addition & 0 deletions scripts/test-guidance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ if [ "$TEST_MB" = 1 ] ; then

MB_PATH=$(realpath $MB_PATH)
cd json_stats
mkdir -p tmp
cargo run --release -- \
--llg-masks \
--expected expected_maskbench.json \
Expand Down

0 comments on commit 80d1f25

Please sign in to comment.