Skip to content

Commit f9edc18

Browse files
authored
Merge pull request #700 from TotallyNotRobots/mypy-coverage
ci: add type checking coverage information to codecov
2 parents d3218ed + 56a1ebd commit f9edc18

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/mypy.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,21 @@ jobs:
1919
cache: "pip"
2020
cache-dependency-path: |
2121
**/*requirements*.txt
22+
2223
- name: Install apt deps
2324
run: sudo apt-get update && sudo apt-get install -qq -y libxml2-dev libxslt1-dev
25+
2426
- name: Install dependencies
2527
run: pip install -Ur requirements-dev.txt
28+
2629
- name: Test with mypy
27-
run: pre-commit run mypy --all
30+
run: mypy --cobertura-xml-report . .
31+
32+
- uses: codecov/codecov-action@v4
33+
with:
34+
name: types
35+
fail_ci_if_error: true
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
disable_search: true
38+
file: cobertura.xml
39+
flags: types

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ config.json
6565
.vagrant/
6666
.mypy_cache/
6767
.DS_Store
68+
cobertura.xml

0 commit comments

Comments
 (0)