Skip to content

Commit

Permalink
Set environment variables for Poetry and cibuildwheel versions in Git…
Browse files Browse the repository at this point in the history
…Hub Actions workflow
  • Loading branch information
Diego Piccinotti committed Oct 23, 2024
1 parent e884846 commit a329116
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Build
permissions:
contents: read

env:
POETRY_VERSION: 1.4.0
CI_BUILD_WHEEL_VERSION: 2.21.3

on:
push:
branches: [ main ]
Expand All @@ -15,19 +19,23 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]

steps:
- uses: actions/checkout@v4

# Used to host cibuildwheel
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry

- name: Install Poetry
run: pipx install poetry==1.4.0
run: pipx install poetry==${{ env.POETRY_VERSION }}

- name: Install cibuildwheel
run: pipx install cibuildwheel==2.21.3
run: pipx install cibuildwheel==${{ env.CI_BUILD_WHEEL_VERSION }}

- name: Build wheels
run: cibuildwheel --output-dir wheelhouse
Expand Down

0 comments on commit a329116

Please sign in to comment.