Skip to content

Commit

Permalink
Temporary change to verify what's happening in the coverage step
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Mar 6, 2024
1 parent b1b10c3 commit 46d069c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ jobs:
toolchain: stable
- name: Run for coverage
run: |
set -e
sudo apt-get update
sudo apt-get install lcov -y
rustup component add llvm-tools-preview
Expand All @@ -406,10 +407,13 @@ jobs:
pip install ./clvm_tools
pip install maturin pytest
maturin develop --release
echo 'PYTEST'
(cd resources/tests/cmdline/tests && pytest)
# Temporarily comment out to totally verify that the above step is failing.
# grcov . --binary-path target -s . --branch --ignore-not-existing --ignore='*/.cargo/*' --ignore='*/tests/*' -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)'
echo 'PYTEST COMPLETE'
grcov . --binary-path target -s . --branch --ignore-not-existing --ignore='*/.cargo/*' --ignore='*/tests/*' -o rust_cov.info
echo 'GRCOV RAN'
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)'
echo 'COVERAGE STEP DONE'
- name: Upload to Coveralls
uses: coverallsapp/github-action@v2
if: always()
Expand Down

0 comments on commit 46d069c

Please sign in to comment.