Skip to content

Commit

Permalink
fix the test coverage collected by pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Aug 8, 2024
1 parent ad3235e commit 5f1c902
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ jobs:
pip install ./clvm_tools
pip install colorama maturin pytest pytest-xdist chia-blockchain==2.1.2 clvm==0.9.8
maturin develop --release -m wheel/Cargo.toml
pytest tests
# run pytest in a single process to avoid a race writing the coverage report
pytest -n 0 tests
grcov . --binary-path target -s . --branch --ignore-not-existing --ignore='*/.cargo/*' --ignore='tests/*' --ignore='venv/*' -o rust_cov.info
python -c 'with open("rust_cov.info") as f: lines = [l for l in f if not (l.startswith("DA:") and int(l.split(",")[1].strip()) >= 2**63)]; open("lcov.info", "w").writelines(lines)'
- name: Upload to Coveralls
Expand Down

0 comments on commit 5f1c902

Please sign in to comment.