Skip to content

Commit 9894eb9

Browse files
feat: replace codecov with python-coverage-comment
The codecov action has been failing for a few weeks. This replaces the use of codecov with python-coverage-comment, which is the tool used in other private repositories.
1 parent 308a77e commit 9894eb9

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

Diff for: .coveragerc

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[run]
22
branch = True
33
data_file = .coverage
4+
relative_files = True
45
source=token_utils
56
omit =
67
test_settings

Diff for: .github/workflows/ci.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ jobs:
3838

3939
- name: Run coverage
4040
if: matrix.python-version == '3.8' && matrix.toxenv == 'django32'
41-
uses: codecov/codecov-action@v2
41+
uses: py-cov-action/python-coverage-comment-action@v3
4242
with:
43-
flags: unittests
44-
fail_ci_if_error: true
43+
GITHUB_TOKEN: ${{ github.token }}
44+
MINIMUM_GREEN: 95
45+
MINIMUM_ORANGE: 84
46+
ANNOTATE_MISSING_LINES: true
47+
ANNOTATION_TYPE: error

Diff for: requirements/ci.in

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
-c constraints.txt
44

55
tox # Virtualenv management for tests
6+
coverage # Python code coverage

Diff for: requirements/ci.txt

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ chardet==5.2.0
1010
# via tox
1111
colorama==0.4.6
1212
# via tox
13+
coverage==7.4.4
14+
# via -r requirements/ci.in
1315
distlib==0.3.8
1416
# via virtualenv
1517
filelock==3.13.3

Diff for: requirements/dev.txt

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ colorama==0.4.6
6060
# tox
6161
coverage[toml]==7.4.4
6262
# via
63+
# -r requirements/ci.txt
6364
# -r requirements/quality.txt
6465
# pytest-cov
6566
diff-cover==8.0.3

0 commit comments

Comments
 (0)