Skip to content

Commit b58287f

Browse files
authored
Merge pull request #1528 from jluebbe/fix-codecov
fix codecov upload
2 parents adc614a + c9119f2 commit b58287f

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/push-pr-unit-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
matrix:
1111
python-version: ['3.9', '3.10', '3.11', '3.12']
1212
uses: ./.github/workflows/reusable-unit-tests.yml
13+
secrets:
14+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1315
with:
1416
python-version: ${{ matrix.python-version }}
1517
push-pr-unit-tests-docker:

.github/workflows/reusable-unit-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
branch:
1010
type: string
1111
required: false
12+
secrets:
13+
CODECOV_TOKEN:
14+
required: false
1215

1316
jobs:
1417
build:
@@ -56,6 +59,10 @@ jobs:
5659
- name: Test with pytest
5760
run: |
5861
pytest --cov-config .coveragerc --cov=labgrid --local-sshmanager --ssh-username runner -k "not test_docker_with_daemon"
62+
- name: Upload coverage to Codecov
63+
uses: codecov/codecov-action@v4
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
5966
- name: Build documentation
6067
run: |
6168
make -C doc clean
@@ -67,4 +74,3 @@ jobs:
6774
# check README.rst separately
6875
pip install rstcheck
6976
rstcheck --ignore-languages=bash --report-level=WARNING README.rst
70-
- uses: codecov/codecov-action@v4

.github/workflows/scheduled-unit-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
python-version: ['3.9', '3.10', '3.11', '3.12']
1414
branch: ['master']
1515
uses: ./.github/workflows/reusable-unit-tests.yml
16+
secrets:
17+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1618
with:
1719
python-version: ${{ matrix.python-version }}
1820
branch: ${{ matrix.branch }}

0 commit comments

Comments
 (0)