summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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