fix(ci): use nox for coverage
This commit is contained in:
parent
cb8f6bba5a
commit
1fc37c9995
1 changed files with 2 additions and 21 deletions
23
.github/workflows/ci.yaml
vendored
23
.github/workflows/ci.yaml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue