Skip to content

Commit 873e8a7

Browse files
authored
Merge pull request #2 from RFD-FHEM/feat/pycoverage
feat: use codecov token and update actions
2 parents a0014ef + d927783 commit 873e8a7

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/test-pr.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test on Pull Request
1+
name: Unittest on Pull Request
22

33
on:
44
pull_request:
@@ -9,10 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v6
1313

1414
- name: Set up Python
15-
uses: actions/setup-python@v4
15+
uses: actions/setup-python@v6
1616
with:
1717
python-version: '3.12'
1818

@@ -24,12 +24,13 @@ jobs:
2424
2525
- name: Run tests with coverage
2626
run: |
27-
python -m pytest --cov=sd_protocols --cov-report=xml --cov-report=term-missing -v
28-
27+
pytest --cov --cov-branch --cov-report=xml
28+
2929
- name: Upload coverage to Codecov
30-
uses: codecov/codecov-action@v3
30+
uses: codecov/codecov-action@v5
3131
with:
3232
file: ./coverage.xml
3333
flags: unittests
3434
name: codecov-umbrella
3535
fail_ci_if_error: true
36+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)