Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,24 @@ jobs:
# with the commit diff, because the merge may affect line numbers.
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}

# installs using setup-python do not work for arm macOS 3.9 and below
- if: ${{ !(inputs.os == 'macos-latest' && contains(fromJSON('["3.7", "3.8", "3.9"]'), inputs.python-version) && inputs.python-architecture == 'x64') }}
name: Set up Python ${{ inputs.python-version }}
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v6
id: install-python
with:
python-version: ${{ inputs.python-version }}
architecture: ${{ inputs.python-architecture }}
# PyPy can have FFI changes within Python versions, which creates pain in CI
check-latest: ${{ startsWith(inputs.python-version, 'pypy') }}

# workaround for the above, only available for 3.9
- if: ${{ inputs.os == 'macos-latest' && contains(fromJSON('["3.9"]'), inputs.python-version) && inputs.python-architecture == 'x64' }}
name: Set up Python ${{ inputs.python-version }}
- name: Set UV_PYTHON to installed Python
shell: bash
run: echo "UV_PYTHON=${{ steps.install-python.outputs.python-path }}" >> $GITHUB_ENV

- name: Set up UV
uses: astral-sh/setup-uv@v6
with:
python-version: cpython-${{ inputs.python-version }}-macos-x86-64

- name: Install nox
run: python -m pip install --upgrade pip && pip install nox[uv]
run: uv tool install nox

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ jobs:
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
matrix:
rust: [stable]
python-version:
[
python-version: [
"3.7",
"3.8",
"3.9",
Expand All @@ -235,7 +234,8 @@ jobs:
"pypy3.9",
"pypy3.10",
"pypy3.11",
"graalpy24.2",
"graalpy24.2", # last graalpy 3.11 release
"graalpy25.0", # current graalpy 3.12 release
]
platform:
[
Expand Down
Loading