From f939daac99f684d10fe9c6f9a9b0135b70b87083 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Tue, 29 Sep 2020 19:28:05 +0100 Subject: [PATCH] ci: upload mypy coverage artifacts --- .github/workflows/main.yml | 5 +++++ tox.ini | 3 +++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7fac02..52b0b21 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,6 +33,11 @@ jobs: - run: scripts/ci/run + - uses: actions/upload-artifact@v2 + with: + name: .mypy-coverage + path: .mypy-coverage/ + pypi: runs-on: ubuntu-latest needs: [build] # add all other jobs here diff --git a/tox.ini b/tox.ini index a5da275..ecd9679 100644 --- a/tox.ini +++ b/tox.ini @@ -36,7 +36,10 @@ commands = # todo I guess use a script... python3 -m mypy -p my.hypothesis \ -p my.instapaper \ + --txt-report .mypy-coverage \ + --html-report .mypy-coverage \ {posargs} + # txt report is a bit more convenient to view on CI # ideally, keep core modules only here