Skip to content

Commit ff01c83

Browse files
committed
Change tests.yml
* Rename jobs * Add tests-default-install
1 parent a0f9173 commit ff01c83

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
- cron: '41 16 * * *' # Every day at 16:41 UTC (to avoid high load at exact hour values).
88

99
jobs:
10-
Testing:
10+
tests-full-install:
11+
name: Run tests with full install
1112
runs-on: ${{ matrix.os }}
1213
strategy:
1314
fail-fast: false # Ensure matrix jobs keep running even if one fails
@@ -30,6 +31,29 @@ jobs:
3031
with:
3132
token: ${{ secrets.CODECOV_TOKEN }}
3233

34+
tests-default-install:
35+
name: Run (most) tests with default install
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v4
39+
- name: Set up PDM
40+
uses: pdm-project/setup-pdm@v4
41+
with:
42+
python-version: ${{ matrix.python-version }}
43+
- name: Install default (without any option) and test dependencies
44+
run: pdm install --group test --frozen-lockfile
45+
- name: Run unit and doc tests with coverage report
46+
run: |
47+
pdm run pytest tests/unit tests/doc
48+
--ignore tests/unit/aggregation/test_cagrad.py
49+
--ignore tests/unit/aggregation/test_nash_mtl.py
50+
--ignore tests/doc/test_aggregation.py
51+
--cov=src --cov-report=xml
52+
- name: Upload results to Codecov
53+
uses: codecov/codecov-action@v4
54+
with:
55+
token: ${{ secrets.CODECOV_TOKEN }}
56+
3357
build-doc:
3458
name: Build doc
3559
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)