@@ -3,23 +3,28 @@ name: Test installation
33on :
44 pull_request :
55 branches :
6- - master
6+ - master
7+ workflow_dispatch :
8+ inputs :
9+ os :
10+ description : ' Operating systems to test (comma separated, e.g. "ubuntu-latest,macos-latest,windows-latest")'
11+ required : false
12+ default : ' ubuntu-latest'
713
814jobs :
915
1016# -----------------------------------------
1117# Use a module from local source
1218# -----------------------------------------
1319 use_as_local_module :
14-
1520 strategy :
1621 fail-fast : false
1722 matrix :
1823 os : [ubuntu-latest, macos-latest, windows-latest]
1924 python-version : [3.9, '3.10', 3.11, 3.12, 3.13]
20-
2125 runs-on : ${{ matrix.os }}
22-
26+ if : |
27+ github.event_name == 'workflow_dispatch' || matrix.os == 'ubuntu-latest'
2328 steps :
2429 - uses : actions/checkout@v4
2530
@@ -47,15 +52,14 @@ jobs:
4752# Install with pip
4853# -----------------------------------------
4954 install_with_pip :
50-
5155 strategy :
5256 fail-fast : false
5357 matrix :
5458 os : [ubuntu-latest, macos-latest, windows-latest]
5559 python-version : [3.9, '3.10', 3.11, 3.12, 3.13]
56-
5760 runs-on : ${{ matrix.os }}
58-
61+ if : |
62+ github.event_name == 'workflow_dispatch' || matrix.os == 'ubuntu-latest'
5963 steps :
6064 - name : Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
6165 uses : actions/setup-python@v4
@@ -82,15 +86,14 @@ jobs:
8286# Install with poetry
8387# -----------------------------------------
8488 install_with_poetry :
85-
8689 strategy :
8790 fail-fast : false
8891 matrix :
8992 os : [ubuntu-latest, macos-latest, windows-latest]
9093 python-version : [3.9, '3.10', 3.11, 3.12, 3.13]
91-
9294 runs-on : ${{ matrix.os }}
93-
95+ if : |
96+ github.event_name == 'workflow_dispatch' || matrix.os == 'ubuntu-latest'
9497 steps :
9598 - name : Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
9699 uses : actions/setup-python@v4
@@ -146,15 +149,14 @@ jobs:
146149# Install with uv
147150# -----------------------------------------
148151 install_with_uv :
149-
150152 strategy :
151153 fail-fast : false
152154 matrix :
153155 os : [ubuntu-latest, macos-latest, windows-latest]
154156 python-version : [3.9, '3.10', 3.11, 3.12, 3.13]
155-
156157 runs-on : ${{ matrix.os }}
157-
158+ if : |
159+ github.event_name == 'workflow_dispatch' || matrix.os == 'ubuntu-latest'
158160 steps :
159161 - name : Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
160162 uses : actions/setup-python@v4
@@ -209,3 +211,7 @@ jobs:
209211 run : |
210212 cd tests
211213 uv run python -m pytest --disable-pytest-warnings -v dataset_test.py filesindex_test.py datasetindex_test.py
214+ - name : Run basic tests
215+ run : |
216+ cd tests
217+ uv run python -m pytest --disable-pytest-warnings -v dataset_test.py filesindex_test.py datasetindex_test.py
0 commit comments