ci: upload mypy coverage artifacts

This commit is contained in:
Dima Gerasimov 2020-09-29 19:28:05 +01:00 committed by karlicoss
parent dc642b5a6d
commit f939daac99
2 changed files with 8 additions and 0 deletions

View file

@ -33,6 +33,11 @@ jobs:
- run: scripts/ci/run - run: scripts/ci/run
- uses: actions/upload-artifact@v2
with:
name: .mypy-coverage
path: .mypy-coverage/
pypi: pypi:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build] # add all other jobs here needs: [build] # add all other jobs here

View file

@ -36,7 +36,10 @@ commands =
# todo I guess use a script... # todo I guess use a script...
python3 -m mypy -p my.hypothesis \ python3 -m mypy -p my.hypothesis \
-p my.instapaper \ -p my.instapaper \
--txt-report .mypy-coverage \
--html-report .mypy-coverage \
{posargs} {posargs}
# txt report is a bit more convenient to view on CI
# ideally, keep core modules only here # ideally, keep core modules only here