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'
|
post-cleanup: 'all'
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@nightly
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
- name: Install dependencies
|
- name: Generate Coverage Reports
|
||||||
run: cargo install grcov
|
run: nox -s coverage
|
||||||
- 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: Upload coverage reports to Codecov
|
- name: Upload coverage reports to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue