Add Python 3.12 to the workflows #31
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: Build macOS Python wheels | |
on: | |
push: | |
branches: | |
- 'master' | |
paths: | |
- '.github/workflows/macos-wheels.yml' | |
- 'python/**' | |
- 'src/**' | |
- 'CMakeLists.txt' | |
- 'setup.py' | |
jobs: | |
build_wheels: | |
strategy: | |
matrix: | |
os: [macos-11, macos-12] | |
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] | |
name: Build macOS wheel on ${{ matrix.os }} for Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Environment report | |
run: | | |
system_profiler SPSoftwareDataType | grep "System Version" | |
python -c "import sys; print(sys.version)" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install twine flake8 cmaketools setuptools wheel | |
- name: Lint with flake8 for syntax errors | |
run: | | |
pip install flake8 | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Build macOS Python wheel | |
run: python setup.py bdist_wheel #-w ./dist --no-deps | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: macos-wheels | |
path: dist/*macosx*.whl | |
#- name: Publish wheels to PyPI | |
# env: | |
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
# run: | | |
# twine upload dist/*macosx*.whl |