diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index f05646c12..79e032862 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -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