Skip to content

Commit fd6914d

Browse files
committed
Introduce separate coverage workflow
1 parent cb93286 commit fd6914d

File tree

2 files changed

+26
-21
lines changed

2 files changed

+26
-21
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
fail-fast: false
4747
matrix:
4848
include:
49+
- os: ubuntu-latest
4950
- os: ubuntu-24.04-arm
5051
- os: windows-latest
5152
- os: macos-latest
@@ -57,27 +58,6 @@ jobs:
5758
- uses: ./.github/actions/setup_rye
5859
- run: rye test -a
5960

60-
pytest-cov:
61-
name: Run tests and collect coverage
62-
runs-on: ubuntu-latest
63-
steps:
64-
- name: Checkout
65-
uses: actions/checkout@v4
66-
67-
- name: Set up Python
68-
uses: actions/setup-python@v5
69-
70-
- name: Setup rye
71-
uses: ./.github/actions/setup_rye
72-
73-
- name: Run tests
74-
run: rye test -a -- --cov --cov-branch --cov-report=xml
75-
76-
- name: Upload results to Codecov
77-
uses: codecov/codecov-action@v5
78-
with:
79-
token: ${{ secrets.CODECOV_TOKEN }}
80-
8161
docs:
8262
name: Documentation build
8363
runs-on: ubuntu-latest

.github/workflows/coverage.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Run tests and upload coverage
2+
3+
on: push
4+
5+
jobs:
6+
pytest-cov:
7+
name: Run tests and collect coverage
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
16+
- name: Setup rye
17+
uses: ./.github/actions/setup_rye
18+
19+
- name: Run tests
20+
run: rye test -a -- --cov --cov-branch --cov-report=xml
21+
22+
- name: Upload results to Codecov
23+
uses: codecov/codecov-action@v5
24+
with:
25+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)