Skip to content

Commit ea0a286

Browse files
committed
only run Python version matrix on cron or dispatch
1 parent d827d1f commit ea0a286

3 files changed

Lines changed: 46 additions & 10 deletions

File tree

.github/workflows/test-linux.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 60
16-
strategy:
17-
matrix:
18-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
19-
2016
steps:
2117
- uses: actions/checkout@v4
2218
- uses: actions/setup-python@v5
2319
with:
24-
python-version: ${{ matrix.python-version }}
20+
python-version: '3.13'
2521

2622
- name: Install build requirements
2723
run: |

.github/workflows/test-macos.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@ jobs:
1010
build:
1111
runs-on: macOS-latest
1212
timeout-minutes: 60
13-
strategy:
14-
matrix:
15-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
16-
1713
steps:
1814
- uses: actions/checkout@v4
1915
- uses: actions/setup-python@v5
2016
with:
21-
python-version: ${{ matrix.python-version }}
17+
python-version: '3.13'
2218

2319
- name: Install build requirements
2420
run: |
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Testing Python versions on ubuntu-latest
2+
3+
on:
4+
schedule:
5+
- cron: '0 12 * * 0'
6+
workflow_dispatch: # Allows manual triggering
7+
8+
env:
9+
SKBUILD_BUILD_OPTIONS: --verbose
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 60
15+
strategy:
16+
matrix:
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install build requirements
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install build-essential cmake
29+
pip install --upgrade -r build_requirements.txt
30+
31+
- name: make
32+
shell: bash
33+
run: |
34+
pip install .
35+
36+
- name: Install test requirements & set configuration variables
37+
run: |
38+
pip install -r test_requirements.txt
39+
python -m casm.bset --autoconfigure --envfile "$GITHUB_ENV"
40+
41+
- name: make test
42+
shell: bash
43+
run: |
44+
python -m pytest -rsap -x tests

0 commit comments

Comments
 (0)