From 9fcc69b9a80b6fe01d6ff11aa7efd0e5df76e7ec Mon Sep 17 00:00:00 2001 From: Nathan Baker Date: Sat, 20 Jun 2020 08:10:28 -0700 Subject: [PATCH] Store coverage results as artifacts --- .github/workflows/python-package.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3874603..f0c7f23 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -35,7 +35,18 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest + - name: Test with pytest and coverage run: | coverage run -m pytest - coverage report -m + coverage report -m | tee coverage.txt + coverage html + - name: Store coverage text results + uses: actions/upload-artifact@v1 + with: + name: coverage-text + path: coverage.txt + - name: Store coverage HTML results + uses: actions/upload-artifact@v1 + with: + name: coverage-html + path: htmlcov/*