aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlrjball <50599110+lrjball@users.noreply.github.com>2020-05-28 19:51:44 +0100
committerGitHub <noreply@github.com>2020-05-28 11:51:44 -0700
commitd9c1f1991969e99791de75b2bc935e6445bc5dcd (patch)
tree5730bb4eeac351cdca9c2e4660c85763a08d21bc /.github
parentbpo-40806: Clarify that itertools.product immediately consumes its inpt (GH-2... (diff)
downloadcpython-d9c1f1991969e99791de75b2bc935e6445bc5dcd.tar.gz
cpython-d9c1f1991969e99791de75b2bc935e6445bc5dcd.tar.bz2
cpython-d9c1f1991969e99791de75b2bc935e6445bc5dcd.zip
bpo-40474: Updated coverage.yml to better report coverage stats (#19851)
Currently modules which are imported early are misreported in coverage. A fix is documented in the devguide, but the fix wasn't being used in CI.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/coverage.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 4f46cbf1100..035348e8a69 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -52,6 +52,7 @@ jobs:
python -m pip install -U coverage
python -m pip install -r Misc/requirements-test.txt
python -m test.pythoninfo
+ export PYTHONPATH=`find .venv -name fullcoverage`
- name: 'Tests with coverage'
run: >
source ./.venv/bin/activate &&
@@ -67,6 +68,7 @@ jobs:
|| true
- name: 'Publish code coverage results'
run: |
+ export PYTHONPATH=
source ./.venv/bin/activate
bash <(curl -s https://codecov.io/bash) -y .github/codecov.yml
env: