Skip to content

Commit 1f1af80

Browse files
committed
fix: make CI better
1 parent c226f79 commit 1f1af80

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Json2xml
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
checks: write # For test results
8+
pull-requests: write # For codecov
9+
510
concurrency:
611
group: ${{ github.workflow }}-${{ github.ref }}
712
cancel-in-progress: true
@@ -12,24 +17,24 @@ jobs:
1217
strategy:
1318
fail-fast: false
1419
matrix:
15-
python-version: [pypy-3.10, '3.10', '3.11' , '3.12', '3.13']
16-
tox-python-version: ['pypy3.10', 'py310', 'py311' , 'py312', 'py313']
20+
python-version: [pypy-3.10, 3.10, 3.11, 3.12, 3.13]
21+
tox-python-version: [pypy3.10, py310, py311, py312, py313]
1722
os: [
1823
ubuntu-latest,
1924
windows-latest,
2025
macos-latest,
2126
]
2227
include:
2328
# Add exact version 3.14.0-alpha.0 for ubuntu-latest only
24-
- python-version: '3.14.0-alpha.5'
29+
- python-version: 3.14.0-alpha.5
2530
tox-python-version: py314-full
2631
os: ubuntu-latest
2732
exclude:
2833
# Exclude other OSes with Python 3.14.0-alpha.0
29-
- python-version: '3.14.0-alpha.5'
34+
- python-version: 3.14.0-alpha.5
3035
tox-python-version: py314-full
3136
os: windows-latest
32-
- python-version: '3.14.0-alpha.5'
37+
- python-version: 3.14.0-alpha.5
3338
os: macos-latest
3439
tox-python-version: py314-full
3540

@@ -56,13 +61,14 @@ jobs:
5661
run: tox -e ${{matrix.tox-python-version}}
5762

5863
- name: Upload coverage to Codecov
59-
uses: codecov/codecov-action@v4
60-
with:
61-
token: ${{ secrets.CODECOV_TOKEN }}
62-
63-
- name: Upload test results to Codecov
64-
if: ${{ !cancelled() }}
65-
uses: codecov/test-results-action@v1
64+
uses: codecov/codecov-action@v5
6665
with:
66+
directory: ./coverage/reports/
67+
env_vars: OS,PYTHON
68+
fail_ci_if_error: true
69+
files: ./coverage1.xml,./coverage2.xml,!./cache
70+
flags: unittests
6771
token: ${{ secrets.CODECOV_TOKEN }}
72+
name: codecov-umbrella
73+
verbose: true
6874

0 commit comments

Comments
 (0)