Skip to content

Commit

Permalink
.github/workflows/build.yml (Coverage report): Try to avoid warnings …
Browse files Browse the repository at this point in the history
…about /tmp files
  • Loading branch information
mkoeppe committed May 28, 2024
1 parent cb38db3 commit a0262b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -483,13 +483,14 @@ jobs:
pattern: coverage-*

- name: Coverage report
# Using --omit to avoid "CoverageWarning: Couldn't parse '/tmp/tmp06qizzie/tmp_ldpu46ob.py': No source for code"
run: |
rm -rf /sage/.coverage
ln -s $(pwd)/.coverage /sage/
cd /sage
./sage -python -m pip install coverage
./sage -python -m coverage combine --rcfile=src/tox.ini .coverage/coverage-*/.coverage
./sage -python -m coverage xml --rcfile=src/tox.ini
./sage -python -m coverage xml --rcfile=src/tox.ini --omit="/tmp/*"
mkdir -p .coverage/coverage-report
mv coverage.xml .coverage/coverage-report/
shell: sh .ci/docker-exec-script.sh BUILD . {0}
Expand Down

0 comments on commit a0262b6

Please sign in to comment.