Skip to content

Commit 9fa8d8d

Browse files
authored
Merge pull request #41 from DifferentiableUniverseInitiative/ASKabalan_patch
expand test matrix
2 parents 1249685 + 9445017 commit 9fa8d8d

File tree

2 files changed

+21
-12
lines changed

2 files changed

+21
-12
lines changed

.github/workflows/github-deploy.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,38 @@ on:
66

77
jobs:
88
build_wheels:
9-
name: Build wheels on ${{ matrix.os }}
9+
name: Build wheels on ${{ matrix.os }} for Python ${{ matrix.python-version }}
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
# macos-13 is an intel runner, macos-14 is apple silicon
1413
os: [ubuntu-latest]
14+
python-version: ["3.10", "3.11", "3.12"] # Specify the Python versions here
1515

1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Build wheels
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }} # Use matrix to set Python version
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install build cibuildwheel
28+
29+
- name: Build wheels with cibuildwheel
2030
uses: pypa/[email protected]
31+
with:
32+
# Builds for specific Python versions specified in matrix
33+
python-version: ${{ matrix.python-version }}
2134
env:
22-
CIBW_BUILD: "cp310-* cp311-* cp312-*"
23-
CIBW_BUILD_VERBOSITY: 2
35+
CIBW_BUILD: "cp${{ matrix.python-version }}-*"
36+
CIBW_SKIP: "pp*" # Skip non-CPython implementations
37+
2438
- uses: actions/upload-artifact@v4
2539
with:
26-
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
40+
name: cibw-wheels-${{ matrix.os }}-${{ matrix.python-version }}
2741
path: ./wheelhouse/*.whl
2842

2943
build_sdist:
@@ -47,16 +61,11 @@ jobs:
4761
permissions:
4862
id-token: write
4963
if: github.event_name == 'release' && github.event.action == 'published'
50-
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
51-
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
5264
steps:
5365
- uses: actions/download-artifact@v4
5466
with:
55-
# unpacks all CIBW artifacts into dist/
5667
pattern: cibw-*
5768
path: dist
5869
merge-multiple: true
5970

6071
- uses: pypa/gh-action-pypi-publish@release/v1
61-
#with:
62-
# repository-url: https://test.pypi.org/legacy/

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: [3.10.4]
17+
python-version: ["3.10" , "3.11" , "3.12"]
1818

1919
steps:
2020
- name: Checkout Source

0 commit comments

Comments
 (0)