Skip to content

Commit 97ce0ed

Browse files
committed
Move reporting MyPy type preciseness to Coveralls
1 parent dbd686f commit 97ce0ed

File tree

3 files changed

+10
-23
lines changed

3 files changed

+10
-23
lines changed

.codecov.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
codecov:
44
notify:
5-
after_n_builds: 2 # The number of test matrix+lint jobs uploading coverage
5+
after_n_builds: 1 # The number of test matrix+lint jobs uploading coverage
66
wait_for_ci: false
77

88
require_ci_to_pass: false
@@ -21,9 +21,6 @@ coverage:
2121
target: 95%
2222
flags:
2323
- pytest
24-
typing:
25-
flags:
26-
- MyPy
2724
project:
2825
lib:
2926
flags:
@@ -37,10 +34,6 @@ coverage:
3734
paths:
3835
- tests/
3936
target: 100%
40-
typing:
41-
flags:
42-
- MyPy
43-
target: 40%
4437

4538
github_checks:
4639
annotations: false

.github/workflows/ci-cd.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ jobs:
106106

107107
lint:
108108
uses: ./.github/workflows/reusable-linters.yml
109-
secrets:
110-
codecov-token: ${{ secrets.CODECOV_TOKEN }}
111109

112110
build-wheels-for-tested-arches:
113111
name: >- # ${{ '' } is a hack to nest jobs under the same sidebar category

.github/workflows/reusable-linters.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ name: Linters
44

55
on:
66
workflow_call:
7-
secrets:
8-
codecov-token:
9-
description: Mandatory token for uploading to Codecov
10-
required: true
117

128
env:
139
COLOR: >- # Supposedly, pytest or coveragepy use this
@@ -60,18 +56,18 @@ jobs:
6056
- name: Run linters
6157
run: |
6258
make lint
63-
- name: Send coverage data to Codecov
64-
uses: codecov/codecov-action@v5
59+
- name: Send coverage data to Coveralls
60+
uses: coverallsapp/github-action@v2
6561
with:
66-
token: ${{ secrets.codecov-token }}
62+
debug: ${{ runner.debug == 1 && true || false }}
63+
fail-on-error: ${{ runner.debug == 1 && false || true }}
6764
files: >-
68-
.tox/.tmp/.mypy/python-3.13/cobertura.xml,
69-
.tox/.tmp/.mypy/python-3.11/cobertura.xml,
65+
.tox/.tmp/.mypy/python-3.13/cobertura.xml
66+
.tox/.tmp/.mypy/python-3.11/cobertura.xml
7067
.tox/.tmp/.mypy/python-3.9/cobertura.xml
71-
flags: >-
72-
CI-GHA,
73-
MyPy
74-
fail_ci_if_error: true
68+
flag-name: MyPy
69+
format: cobertura
70+
measure: ${{ runner.debug == 1 && true || false }}
7571
- name: Install spell checker
7672
run: |
7773
pip install -r requirements/doc.txt

0 commit comments

Comments
 (0)