Skip to content

Commit aa62726

Browse files
committed
trying new config
1 parent f0e51ba commit aa62726

File tree

1 file changed

+27
-29
lines changed

1 file changed

+27
-29
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,35 @@ on:
88

99
jobs:
1010
test:
11+
name: Run unit tests
1112
runs-on: ubuntu-latest
12-
1313
steps:
14-
- name: Check out repository
15-
uses: actions/checkout@v3
16-
17-
- name: Set up Python 3.13
18-
uses: actions/setup-python@v4
19-
with:
20-
python-version: "3.13"
21-
22-
- name: Install PDM
23-
run: |
24-
python -m pip install --upgrade pip
25-
pip install pdm
26-
27-
- name: Install dependencies
28-
run: |
29-
pdm install -G:all
30-
31-
- name: Run tests with coverage
32-
run: |
33-
pdm run pytest --cov-report=xml
34-
35-
- name: Upload coverage to Codecov
36-
uses: codecov/codecov-action@v3
37-
with:
38-
token: ${{ secrets.CODECOV_TOKEN }}
39-
file: ./coverage.xml
40-
fail_ci_if_error: true
41-
verbose: true
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Set up Python 3.13
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.13"
22+
- name: Install PDM
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install pdm
26+
- name: Install dependencies
27+
run: |
28+
pdm install -G:all
29+
- name: Run tests
30+
run: |
31+
pytest --cov --junitxml=junit.xml
32+
# Copy and paste the codecov/test-results-action here
33+
- name: Upload coverage to Codecov
34+
if: ${{ !cancelled() }}
35+
uses: codecov/codecov-action@v5
36+
with:
37+
token: ${{ secrets.CODECOV_TOKEN }}
38+
verbose: true
39+
4240

4341
format:
4442
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)