Skip to content

Commit

Permalink
Add Linux arm64 CI, pin GitHub Actions to hashes (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal authored Feb 17, 2025
1 parent ff1ec21 commit f507d6b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
# - lint
- validate-package
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0

- uses: yezz123/setup-uv@v4
- uses: yezz123/setup-uv@ab6be5a42627f19dc36e57b548592a5e52cece4a # v4.1

- name: Run ${{ matrix.env }}
run: uvx nox -s ${{ matrix.env }}
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
name: Build sdist and wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
name: Checkout repository

- uses: actions/setup-python@v5.1.1
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: "3.12"

Expand All @@ -26,7 +26,7 @@ jobs:
pipx run build --outdir dist
- name: Upload wheel and sdist artifacts
uses: actions/upload-artifact@v4.3.6
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: artifacts
path: ./dist/*
Expand All @@ -44,7 +44,7 @@ jobs:

steps:
- name: Download artifacts
uses: actions/[email protected]
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
path: dist
merge-multiple: true
Expand All @@ -53,6 +53,6 @@ jobs:
run: ls -la dist/

- name: Publish sdist and wheel to PyPI
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
with:
packages-dir: dist/
25 changes: 15 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,23 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-13, macos-latest, windows-latest]
platform: [ubuntu-latest, ubuntu-22.04-arm, macos-13, macos-latest, windows-latest]
python-version:
["3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.9", "pypy-3.10"]
# TODO: disable nightly NumPy tests for now, re-enable later
# nightly: [[True, "nightly-"], [False, ""]]
# PyPy for Linux arm64 hasn't made it to a new release yet, see
# https://github.com/actions/setup-python/pull/1011
exclude:
- platform: ubuntu-22.04-arm
python-version: "pypy-3.9"
- platform: ubuntu-22.04-arm
python-version: "pypy-3.10"
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/setup-python@v5.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- uses: yezz123/setup-uv@v4
- uses: yezz123/setup-uv@ab6be5a42627f19dc36e57b548592a5e52cece4a # v4.1

# On PyPy, we skip SciPy because we don't have wheels
# available, see noxfile.py for more details.
Expand All @@ -60,15 +65,15 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-13, macos-latest, windows-latest]
platform: [ubuntu-latest, ubuntu-22.04-arm, macos-13, macos-latest, windows-latest]
python-version: ["3.x"]

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/setup-python@v5.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- uses: yezz123/setup-uv@v4
- uses: yezz123/setup-uv@ab6be5a42627f19dc36e57b548592a5e52cece4a # v4.1
- name: Run tests against nightly wheels for NumPy and SciPy
run: uvx nox -s nightly-tests

0 comments on commit f507d6b

Please sign in to comment.