Skip to content

Commit

Permalink
Merge pull request #1528 from jluebbe/fix-codecov
Browse files Browse the repository at this point in the history
fix codecov upload
  • Loading branch information
Emantor authored Oct 21, 2024
2 parents adc614a + c9119f2 commit b58287f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/push-pr-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
uses: ./.github/workflows/reusable-unit-tests.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
python-version: ${{ matrix.python-version }}
push-pr-unit-tests-docker:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/reusable-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branch:
type: string
required: false
secrets:
CODECOV_TOKEN:
required: false

jobs:
build:
Expand Down Expand Up @@ -56,6 +59,10 @@ jobs:
- name: Test with pytest
run: |
pytest --cov-config .coveragerc --cov=labgrid --local-sshmanager --ssh-username runner -k "not test_docker_with_daemon"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build documentation
run: |
make -C doc clean
Expand All @@ -67,4 +74,3 @@ jobs:
# check README.rst separately
pip install rstcheck
rstcheck --ignore-languages=bash --report-level=WARNING README.rst
- uses: codecov/codecov-action@v4
2 changes: 2 additions & 0 deletions .github/workflows/scheduled-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
python-version: ['3.9', '3.10', '3.11', '3.12']
branch: ['master']
uses: ./.github/workflows/reusable-unit-tests.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
python-version: ${{ matrix.python-version }}
branch: ${{ matrix.branch }}
Expand Down

0 comments on commit b58287f

Please sign in to comment.