From 3340b312aa1e3ecf09cc9a8ee7dc501732771a42 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 5 Dec 2020 17:00:53 -0500 Subject: Try up-and-down-load --- .github/workflows/coverage.yml | 47 ++++++++++++++++++++++++++++++++++++++---- 1 file 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 -- cgit v1.2.1