Skip to content

Commit

Permalink
[CI debug] Constrain wheel building
Browse files Browse the repository at this point in the history
- do not matrix across python version as it already does this internally
- do not pip install packages as it already does this internally
- restrict python versions in pyproject.toml
  • Loading branch information
gnodar01 committed Jul 22, 2024
1 parent c21b456 commit f516b8b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ['3.8', '3.9', '3.10']
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Installation
run:
|
python -m pip install --upgrade pip
pip install "cython<3.0"
pip install "numpy<2"
pip install -e .
# - name: Installation
# run:
# |
# python -m pip install --upgrade pip
# pip install "cython<3.0"
# pip install "numpy<2"
# pip install -e .
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.19.2

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# env:
# - CIBW_BUILD: cp38-* cp39-* cp310-*
# - CIBW_SKIP: "*-win32"

- uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[build-system]
requires = ["setuptools", "numpy<2"]
build-backend = "setuptools.build_meta"
[project]
requires-python = ">=3.8,<=3.10"

0 comments on commit f516b8b

Please sign in to comment.