Skip to content

Commit 1805059

Browse files
committed
Run test_install only for linux by default
1 parent 1f5dc8a commit 1805059

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

.github/workflows/test-install.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@ name: Test installation
33
on:
44
pull_request:
55
branches:
6-
- master
6+
- master
7+
workflow_dispatch:
78

89
jobs:
910

1011
# -----------------------------------------
1112
# Use a module from local source
1213
# -----------------------------------------
1314
use_as_local_module:
14-
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
os: [ubuntu-latest, macos-latest, windows-latest]
18+
os: ${{ github.event_name == 'workflow_dispatch' && '["ubuntu-latest","macos-latest","windows-latest"]' || '["ubuntu-latest"]' }}
1919
python-version: [3.9, '3.10', 3.11, 3.12, 3.13]
20-
2120
runs-on: ${{ matrix.os }}
22-
2321
steps:
2422
- uses: actions/checkout@v4
2523

@@ -47,15 +45,12 @@ jobs:
4745
# Install with pip
4846
# -----------------------------------------
4947
install_with_pip:
50-
5148
strategy:
5249
fail-fast: false
5350
matrix:
54-
os: [ubuntu-latest, macos-latest, windows-latest]
51+
os: ${{ github.event_name == 'workflow_dispatch' && '["ubuntu-latest","macos-latest","windows-latest"]' || '["ubuntu-latest"]' }}
5552
python-version: [3.9, '3.10', 3.11, 3.12, 3.13]
56-
5753
runs-on: ${{ matrix.os }}
58-
5954
steps:
6055
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
6156
uses: actions/setup-python@v4
@@ -82,15 +77,12 @@ jobs:
8277
# Install with poetry
8378
# -----------------------------------------
8479
install_with_poetry:
85-
8680
strategy:
8781
fail-fast: false
8882
matrix:
89-
os: [ubuntu-latest, macos-latest, windows-latest]
83+
os: ${{ github.event_name == 'workflow_dispatch' && '["ubuntu-latest","macos-latest","windows-latest"]' || '["ubuntu-latest"]' }}
9084
python-version: [3.9, '3.10', 3.11, 3.12, 3.13]
91-
9285
runs-on: ${{ matrix.os }}
93-
9486
steps:
9587
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
9688
uses: actions/setup-python@v4
@@ -146,15 +138,12 @@ jobs:
146138
# Install with uv
147139
# -----------------------------------------
148140
install_with_uv:
149-
150141
strategy:
151142
fail-fast: false
152143
matrix:
153-
os: [ubuntu-latest, macos-latest, windows-latest]
144+
os: ${{ github.event_name == 'workflow_dispatch' && '["ubuntu-latest","macos-latest","windows-latest"]' || '["ubuntu-latest"]' }}
154145
python-version: [3.9, '3.10', 3.11, 3.12, 3.13]
155-
156146
runs-on: ${{ matrix.os }}
157-
158147
steps:
159148
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
160149
uses: actions/setup-python@v4
@@ -209,3 +198,11 @@ jobs:
209198
run: |
210199
cd tests
211200
uv run python -m pytest --disable-pytest-warnings -v dataset_test.py filesindex_test.py datasetindex_test.py
201+
- name: Run basic tests
202+
run: |
203+
cd tests
204+
uv run python -m pytest --disable-pytest-warnings -v dataset_test.py filesindex_test.py datasetindex_test.py
205+
- name: Run basic tests
206+
run: |
207+
cd tests
208+
uv run python -m pytest --disable-pytest-warnings -v dataset_test.py filesindex_test.py datasetindex_test.py

0 commit comments

Comments
 (0)