Skip to content

Commit bf52330

Browse files
committed
Run minimal tests on GitHub Actions
1 parent ec42db2 commit bf52330

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
branches:
1111
- main
1212
- update-pixi
13+
- add-minimal-installation
1314
schedule:
1415
- cron: "0 0 * * *"
1516

@@ -32,13 +33,14 @@ jobs:
3233
- test-py312
3334
- test-py313
3435
- test-py314
36+
- esmvaltool-minimal-dev
3537
name: ${{ matrix.os }} ${{ matrix.environment }}
3638
steps:
3739
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3840
with:
3941
fetch-depth: 0
4042
persist-credentials: false
41-
- uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6
43+
- uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6
4244
with:
4345
frozen: true
4446
environments: ${{ matrix.environment }}
@@ -47,7 +49,15 @@ jobs:
4749
- name: Check code quality
4850
run: pre-commit run -a
4951
- name: Run tests
50-
run: pytest -n 2 -m "not installation"
52+
if: matrix.environment != 'esmvaltool-minimal-dev'
53+
run: pytest -n 2
54+
- name: Run tests
55+
if: matrix.environment == 'esmvaltool-minimal-dev'
56+
run: >-
57+
pytest
58+
-n 2
59+
--ignore=tests/sample_data/
60+
--ignore=tests/unit/cmorizers/test_cmorization_interface.py
5161
- name: Upload artifacts
5262
if: ${{ always() }} # upload artifacts even if fail
5363
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ env = { MPLBACKEND = "Agg" }
132132
log_level = "WARNING"
133133
minversion = "6"
134134
markers = [
135-
"installation: Test requires installation of dependencies",
136135
"diagnostic_image_output: test produces images that will be compared with imagehash",
137136
]
138137
testpaths = ["tests"]

tests/integration/test_diagnostic_run.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def check(result_file):
7171
]
7272

7373

74-
@pytest.mark.installation
7574
@pytest.mark.parametrize("script_file", SCRIPTS)
7675
def test_diagnostic_run(tmp_path, script_file):
7776
local_script_file = Path(__file__).parent / script_file

0 commit comments

Comments
 (0)