Skip to content

Commit

Permalink
fix(ci): use nox for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
anand-bala committed Oct 15, 2023
1 parent cb8f6bb commit 1fc37c9
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,27 +139,8 @@ jobs:
post-cleanup: 'all'
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install dependencies
run: cargo install grcov
- name: Build
run: |
cargo +nightly build --release
maturin develop --manifest-path pyargus/Cargo.toml
- name: Tests
continue-on-error: true
run: |
cargo +nightly test --workspace --exclude pyargus
coverage run --source pyargus/argus,pyargus/src -m pytest
- name: Generate coverage reports
run: |
grcov . -s $GITHUB_WORKSPACE --binary-path target/debug \
--filter covered \
-t lcov \
--branch \
--ignore-not-existing \
--ignore $HOME/.cargo/** \
-o rust.lcov
coverage lcov -o python.lcov
- name: Generate Coverage Reports
run: nox -s coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit 1fc37c9

Please sign in to comment.