Skip to content

Commit f35feb1

Browse files
committed
Updating codecov configuration
1 parent cfded32 commit f35feb1

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

.github/workflows/python-test-dev.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ jobs:
2727
pip install .
2828
- name: Test
2929
run: |
30-
coverage run -m pytest -v && coverage report -m
31-
coverage xml
30+
pytest --cov=howlongtobeatpy --cov-report=xml
3231
- name: Upload coverage to Codecov
3332
uses: codecov/codecov-action@v3
3433
with:

.github/workflows/python-test-pr.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424
cd howlongtobeatpy
2525
python -m pip install --upgrade pip
2626
pip install -U pytest
27-
pip install codecov
2827
pip install .
2928
- name: Test
3029
run: |
31-
coverage run -m pytest -v && coverage report -m
32-
coverage xml
30+
pytest --cov=howlongtobeatpy --cov-report=xml

.github/workflows/python-test-release.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,14 @@ jobs:
3131
run: |
3232
python -m pip install --upgrade pip
3333
pip install -U pytest
34-
pip install howlongtobeatpy codecov
34+
pip install howlongtobeatpy
3535
- name: Test
3636
run: |
37-
coverage run -m pytest -v && coverage report -m
38-
coverage xml
39-
- name: Upload Coverage codecov
40-
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
43-
run: |
44-
codecov
37+
pytest --cov=howlongtobeatpy --cov-report=xml
38+
- name: Upload coverage to Codecov
39+
uses: codecov/codecov-action@v3
40+
with:
41+
token: ${{ secrets.CODECOV_TOKEN }}
4542
- name: SonarCloud Scan
4643
uses: sonarsource/sonarcloud-github-action@master
4744
env:

0 commit comments

Comments
 (0)