Update Python version to 3.13 #6
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 Wheels | |
on: | |
# Runs on pushes targeting the main branch | |
push: | |
branches: | |
- main | |
paths: | |
- src/seismicrna/** | |
- pyproject.toml | |
- environment.yml | |
- .github/workflows/build-wheels.yml | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: pages | |
cancel-in-progress: false | |
jobs: | |
build: | |
runs-on: ${{ matrix.platform }} | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Python (Linux) | |
if: matrix.platform == 'ubuntu-latest' | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.13 | |
- name: Install pyenv (macOS only) | |
if: matrix.platform == 'macos-latest' | |
run: | | |
brew update | |
brew install pyenv | |
echo 'eval "$(pyenv init --path)"' >> ~/.zshrc | |
echo 'eval "$(pyenv init -)"' >> ~/.zshrc | |
source ~/.zshrc | |
pyenv install 3.10 | |
pyenv install 3.11 | |
pyenv install 3.12 | |
pyenv global 3.10 3.11 3.12 | |
- name: Install cibuildwheel | |
run: | | |
python -m pip install --upgrade pip | |
pip install cibuildwheel | |
- name: Build wheels | |
run: | | |
cibuildwheel --output-dir dist | |
env: | |
CIBW_PLATFORM: ${{ matrix.platform == 'ubuntu-latest' && 'linux' || matrix.platform == 'macos-latest' && 'macos' }} | |