Skip to content

Commit 83f0076

Browse files
authored
Update actions workflow (#44)
* Remove upload of coverage * Split up tests - Unit tests on all OSes - Integration (and e2e) only on ubuntu * Remove last step of codecov * Fix marker call for slow tests * Move tests back under one workflow
1 parent e2cb2b4 commit 83f0076

1 file changed

Lines changed: 20 additions & 22 deletions

File tree

.github/workflows/test.yaml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,21 @@ jobs:
2727
- uses: actions/checkout@v6
2828
- name: Setup venv
2929
uses: ./.github/actions/setup-venv
30-
- name: Run quick tests
31-
id: run-quick-tests
30+
31+
- name: Run non-ubuntu quick tests
32+
id: run-unit-tests
33+
if: matrix.os != 'ubuntu-latest'
34+
shell: bash
35+
run: >
36+
uv run pytest \
37+
-m "unit" \
38+
--junitxml=pytest-quick.xml \
39+
--cov=src tests \
40+
--log-level=DEBUG \
41+
--verbose
42+
- name: Run ubuntu quick tests
43+
id: run-quick-ubuntu-tests
44+
if: matrix.os == 'ubuntu-latest'
3245
shell: bash
3346
run: >
3447
uv run pytest \
@@ -39,20 +52,20 @@ jobs:
3952
--log-level=DEBUG \
4053
--verbose
4154
42-
- name: Run slow tests (manual trigger)
43-
if: github.event_name == 'workflow_dispatch'
55+
- name: Run slow tests
56+
if: matrix.os == 'ubuntu-latest' && github.event_name == 'workflow_dispatch'
4457
shell: bash
4558
run: >
4659
uv run pytest \
47-
-m "slow and not full_pipeline" \
60+
-m "slow" \
4861
--runner=docker \
4962
--junitxml=pytest-slow.xml \
5063
--cov=src tests \
5164
--cov-append \
5265
--verbose
5366
54-
- name: Run full pipeline tests (manual trigger)
55-
if: github.event_name == 'workflow_dispatch' && inputs.e2e == true
67+
- name: Run full pipeline tests
68+
if: matrix.os == 'ubuntu-latest' && github.event_name == 'workflow_dispatch' && inputs.e2e == true
5669
shell: bash
5770
run: >
5871
uv run pytest \
@@ -63,21 +76,6 @@ jobs:
6376
--cov-append \
6477
--verbose
6578
66-
- name: Generate coverage report
67-
shell: bash
68-
run: >
69-
uv run pytest \
70-
--cov-report=term-missing:skip-covered \
71-
--cov-report=xml:coverage.xml \
72-
--cov=src
73-
74-
- name: Upload coverage to Codecov
75-
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de
76-
with:
77-
token: ${{ secrets.CODECOV_TOKEN }}
78-
files: ./coverage.xml
79-
verbose: true
80-
8179
ruff:
8280
runs-on: ubuntu-latest
8381
steps:

0 commit comments

Comments
 (0)