python 3.12 wheels #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS | |
on: | |
push: | |
branches-ignore: | |
- master | |
tags-ignore: | |
- '**' | |
jobs: | |
build_wheels: | |
name: Build wheels on macos-latest | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Before build | |
run: | | |
brew install gsl | |
brew info gcc | |
brew info gsl | |
shell: bash | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_BUILD_VERBOSITY: 1 | |
CIBW_TEST_REQUIRES: pytest | |
CIBW_TEST_COMMAND: "pytest {project}/tests" | |
CIBW_BEFORE_BUILD: > | |
pip3 install --upgrade pip && | |
pip3 install Cython && | |
pip3 install setuptools && | |
pip3 install -r requirements.txt | |
#CIBW_BUILD: "cp38-macosx_x86_64 cp39-macosx_x86_64 cp310-macosx_x86_64 cp311-macosx_x86_64" | |
CIBW_BUILD: "cp312-macosx_x86_64" | |
CIBW_ARCHS_MACOS: "x86_64" | |
- name: Show files | |
run: ls -lh wheelhouse | |
shell: bash | |
- name: Upload wheels | |
shell: bash | |
env: | |
TEST_PYPI_USR: ${{ secrets.TEST_PYPI_USR }} | |
TEST_PYPI_PWD: ${{ secrets.TEST_PYPI_PWD }} | |
run: | | |
pip3 install --upgrade pip | |
pip3 install twine | |
chmod +x upload_test_wheels.sh | |
./upload_test_wheels.sh | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: macOS_x86_64_wheels | |
path: ./wheelhouse/*.whl | |
if-no-files-found: warn |