Skip to content

Commit

Permalink
🧪 Add tests against macOS M-series runners for PRs and wheel builds (#43
Browse files Browse the repository at this point in the history
)

This will now help test the M-series wheels when they are built. All
Python versions have been added to the testing matrix.
  • Loading branch information
agriyakhetarpal committed Feb 1, 2024
2 parents f5cab0f + 344de77 commit 57a6b65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ jobs:
strategy:
fail-fast: false
name: macOS wheels (arm64)
runs-on: macos-latest
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -268,9 +268,6 @@ jobs:
output-dir: wheelhouse
env:
CIBW_ARCHS_MACOS: arm64
# These are needed to build arm64 binaries on x86_64 macOS
CIBW_ENVIRONMENT_MACOS: >
GOARCH="arm64"
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ''
CIBW_TEST_COMMAND: >
hugo version
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.12"]
runs-on: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: [ubuntu-latest, macos-latest, macos-14, windows-latest]
exclude:
- python-version: "3.8"
runs-on: macos-14
- python-version: "3.9"
runs-on: macos-14

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -66,7 +71,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: ./hugo_cache/
key: ${{ runner.os }}-hugo-${{ steps.setup-go.outputs.go-version }}
key: ${{ matrix.runs-on }}-hugo-${{ steps.setup-go.outputs.go-version }}

- name: Install Python dependencies
run: python -m pip install build virtualenv nox
Expand Down

0 comments on commit 57a6b65

Please sign in to comment.