Skip to content

Commit

Permalink
ci: Disable macos builds.
Browse files Browse the repository at this point in the history
The hdf5 crate is failing and I do not have access to macos
to debug.
  • Loading branch information
jetuk committed Jan 30, 2024
1 parent 92b7114 commit 95b21aa
Showing 1 changed file with 43 additions and 41 deletions.
84 changes: 43 additions & 41 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,49 @@ on:
pull_request:

jobs:
macos:
runs-on: macos-latest
strategy:
matrix:
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- uses: dtolnay/rust-toolchain@stable
- name: Build wheels - x86_64
uses: PyO3/maturin-action@v1
with:
target: x86_64
args: --release --out dist --sdist -m pywr-python/Cargo.toml
- name: Install built wheel - x86_64
run: |
pip install pytest h5py pandas polars pyarrow click
pip install pywr --no-index --find-links dist --force-reinstall --no-deps
python -c "import pywr"
python -m pytest
- name: Build wheels - universal2
uses: PyO3/maturin-action@v1
with:
target: universal2-apple-darwin
args: -i ${{ matrix.python-version }} --release --out dist -m pywr-python/Cargo.toml
- name: Install built wheel - universal2
run: |
pip install pytest h5py pandas polars pyarrow click
pip install pywr --no-index --find-links dist --force-reinstall --no-deps
python -c "import pywr"
python -m pytest
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

# Mac OS X does not work with the HDF5 crate for some reason.
# macos:
# runs-on: macos-latest
# strategy:
# matrix:
# python-version: [ '3.9', '3.10', '3.11', '3.12' ]
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
# - uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# architecture: x64
# - uses: dtolnay/rust-toolchain@stable
# - name: Build wheels - x86_64
# uses: PyO3/maturin-action@v1
# with:
# target: x86_64
# args: --release --out dist --sdist -m pywr-python/Cargo.toml
# - name: Install built wheel - x86_64
# run: |
# pip install pytest h5py pandas polars pyarrow click
# pip install pywr --no-index --find-links dist --force-reinstall --no-deps
# python -c "import pywr"
# python -m pytest
# - name: Build wheels - universal2
# uses: PyO3/maturin-action@v1
# with:
# target: universal2-apple-darwin
# args: -i ${{ matrix.python-version }} --release --out dist -m pywr-python/Cargo.toml
# - name: Install built wheel - universal2
# run: |
# pip install pytest h5py pandas polars pyarrow click
# pip install pywr --no-index --find-links dist --force-reinstall --no-deps
# python -c "import pywr"
# python -m pytest
# - name: Upload wheels
# uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: dist

windows:
runs-on: windows-latest
Expand Down

0 comments on commit 95b21aa

Please sign in to comment.