summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-12-05 17:00:53 -0500
committerNed Batchelder <ned@nedbatchelder.com>2020-12-05 17:30:22 -0500
commit3340b312aa1e3ecf09cc9a8ee7dc501732771a42 (patch)
tree3cefefc15f6fd55c3b2feda59f7f161f9f0e80ba
parent6a143d8b45921ba8217a95ce82b48d83b2db5bd5 (diff)
downloadpython-coveragepy-git-nedbat/combine-action.tar.gz
Try up-and-down-loadnedbat/combine-action
-rw-r--r--.github/workflows/coverage.yml47
1 files changed, 43 insertions, 4 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 2120a667..a0040629 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -48,10 +48,49 @@ jobs:
env:
COVERAGE_COVERAGE: "yes"
run: |
- python -m tox
+ python -m tox -- -k fo
python -m igor combine_html
+ mv .metacov .coverage-${{ matrix.python-version }}
- - name: "Upload to codecov"
- uses: codecov/codecov-action@v1
+ - name: "Upload coverage data"
+ uses: actions/upload-artifact@v2
with:
- file: coverage.xml
+ 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
+
+ - name: "Download coverage data"
+ uses: actions/download-artifact@v2
+ with:
+ name: metacov
+
+ - name: "Combine and report"
+ run: |
+ coverage combine
+ coverage xml
+ ls -al
+
+ #- name: "Upload to codecov"
+ # uses: codecov/codecov-action@v1
+ # with:
+ # file: coverage.xml