Skip to content

Commit f1a150d

Browse files
authored
Migrate to codecov.io (vacanza#1818)
1 parent 88badb2 commit f1a150d

3 files changed

Lines changed: 5 additions & 16 deletions

File tree

‎.github/workflows/ci-cd.yml‎

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,10 @@ jobs:
8585
run: |
8686
make test
8787
88-
- name: Upload coverage
89-
uses: coverallsapp/github-action@v2
88+
- name: Upload coverage to Codecov
89+
uses: codecov/codecov-action@v4.0.1
9090
with:
91-
flag-name: tests-${{ matrix.python-version }}-${{ matrix.os }}
92-
parallel: true
93-
path-to-lcov: coverage.lcov
91+
token: ${{ secrets.CODECOV_TOKEN }}
9492

9593
build:
9694
name: Build distribution
@@ -123,16 +121,6 @@ jobs:
123121
name: dist
124122
path: dist
125123

126-
finish-coveralls:
127-
name: Finish coveralls
128-
needs: test
129-
runs-on: ubuntu-latest
130-
steps:
131-
- name: Finished
132-
uses: coverallsapp/github-action@v2
133-
with:
134-
parallel-finished: true
135-
136124
test-build:
137125
name: Test build on ${{ matrix.os }}
138126
runs-on: ${{ matrix.os }}

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*.pyc
1313
build/*
1414
coverage.lcov
15+
coverage.xml
1516
dist/
1617
docs/build
1718
docs/source/_autosummary

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ snapshot:
6060

6161
test:
6262
scripts/l10n/generate_mo_files.py
63-
pytest --cov=. --cov-config=pyproject.toml --cov-report term --cov-report lcov --durations 10 --durations-min=0.75 --dist loadscope --no-cov-on-fail --numprocesses auto
63+
pytest --cov=. --cov-config=pyproject.toml --cov-report term --cov-report xml --durations 10 --durations-min=0.75 --dist loadscope --no-cov-on-fail --numprocesses auto
6464

6565
tox:
6666
tox --parallel auto

0 commit comments

Comments
 (0)