Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Jan 9, 2025
1 parent 875bb07 commit 3c8ff84
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,20 +331,18 @@ jobs:
- name: cargo test (release) (windows)
if: matrix.os == 'windows-latest'
run: cargo test --workspace --release
- name: Continue with coverage
- name: test coverage
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install lcov -y
rustup component add llvm-tools-preview
python -m venv venv
source venv/bin/activate
git clone https://github.com/Chia-Network/clvm_tools.git --branch=main --single-branch
pip install ./clvm_tools
. venv/bin/activate
pip install colorama maturin pytest pytest-xdist chia-blockchain==2.1.2 clvm==0.9.8
maturin develop --release -m wheel/Cargo.toml
# run pytest in a single process to avoid a race writing the coverage report
pytest -n 0 tests
sudo apt-get update
sudo apt-get install lcov -y
rustup component add llvm-tools-preview
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 3c8ff84

Please sign in to comment.