Skip to content

Commit

Permalink
ci: add type checking coverage information to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed May 9, 2024
1 parent a5789cf commit 9638924
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 9638924

Please sign in to comment.