Skip to content

Commit

Permalink
Merge pull request #700 from TotallyNotRobots/mypy-coverage
Browse files Browse the repository at this point in the history
ci: add type checking coverage information to codecov
  • Loading branch information
linuxdaemon authored May 10, 2024
2 parents d3218ed + 56a1ebd commit f9edc18
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,21 @@ jobs:
cache: "pip"
cache-dependency-path: |
**/*requirements*.txt
- name: Install apt deps
run: sudo apt-get update && sudo apt-get install -qq -y libxml2-dev libxslt1-dev

- name: Install dependencies
run: pip install -Ur requirements-dev.txt

- name: Test with mypy
run: pre-commit run mypy --all
run: mypy --cobertura-xml-report . .

- uses: codecov/codecov-action@v4
with:
name: types
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
disable_search: true
file: cobertura.xml
flags: types
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ config.json
.vagrant/
.mypy_cache/
.DS_Store
cobertura.xml

0 comments on commit f9edc18

Please sign in to comment.