diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2020-12-05 17:00:53 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2020-12-05 20:24:46 -0500 |
commit | 6a41be799427ee004381553a2d7e94733617dcf4 (patch) | |
tree | ff2d4c0e0665417dbb3bff4de13947e7f52ef65c | |
parent | 380dcc3e82e5fa5028ddf886dc2743319fc3fd3f (diff) | |
download | python-coveragepy-git-6a41be799427ee004381553a2d7e94733617dcf4.tar.gz |
Combine coverage across Python versions, upload one file to codecov.
-rw-r--r-- | .github/workflows/coverage.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2120a667..ad5a21cf 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -48,8 +48,50 @@ jobs: env: COVERAGE_COVERAGE: "yes" run: | + set -xe python -m tox python -m igor combine_html + mv .metacov .coverage.${{ matrix.python-version }} + + - name: "Upload coverage data" + uses: actions/upload-artifact@v2 + with: + name: metacov + path: .coverage.* + + combine: + name: "Combine coverage data" + needs: coverage + runs-on: ubuntu-latest + + steps: + - name: "Check out the repo" + uses: "actions/checkout@v2" + + - name: "Set up Python" + uses: "actions/setup-python@v2" + with: + python-version: "3.9" + + - name: "Install dependencies" + run: | + set -xe + python -VV + python -m site + python -m pip install -r requirements/ci.pip + python setup.py --quiet clean develop + python igor.py zip_mods install_egg + + - name: "Download coverage data" + uses: actions/download-artifact@v2 + with: + name: metacov + + - name: "Combine and report" + run: | + set -xe + coverage combine + coverage xml - name: "Upload to codecov" uses: codecov/codecov-action@v1 |