Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
# windows-latest ships MSVC 19.5x (VS 2026), which CUDA 12.8 rejects, so
# the Windows wheels build on the VS 2022 image.
os: [ubuntu-latest, macos-latest, windows-2022]
python-version: [cp310, cp311, cp312, cp313, cp314]
python-version: [cp311, cp312, cp313, cp314, cp315]
arch: [x86_64, arm64]
exclude:
- os: ubuntu-latest
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
"CUDACXX=$env:CUDA_PATH\bin\nvcc.exe" | Out-File -FilePath $env:GITHUB_ENV -Append

- name: Build wheels
uses: pypa/cibuildwheel@v4.1.0
uses: pypa/cibuildwheel@v4.3.5
# to supply options, put them in 'env', like:
env:
MACOSX_DEPLOYMENT_TARGET: "11.0"
Expand Down
30 changes: 29 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,42 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
Python-Versions:
runs-on: ubuntu-latest
outputs:
all: ${{ steps.matrix.outputs.all }}
pr: ${{ steps.matrix.outputs.pr }}
steps:
- name: Compute supported Python versions
id: matrix
env:
MIN_MINOR: 11 # our own floor; raise it manually if we ever need to
run: |
today=$(date +%F)
all=$(curl -fsS https://endoflife.date/api/python.json | jq -c \
--arg today "$today" --argjson min "$MIN_MINOR" '
[ .[]
| select(.cycle | startswith("3."))
| select((.cycle | split(".")[1] | tonumber) >= $min)
| select(.releaseDate <= $today) # already released
| select(.eol > $today) # not yet EOL
| .cycle ]
| sort_by(split(".")[1] | tonumber)')
# PRs: second-newest release (currently 3.14), so we don't
# chase brand-new wheels on every PR
pr=$(jq -c '[.[-2]]' <<< "$all")
echo "all=$all" >> "$GITHUB_OUTPUT"
echo "pr=$pr" >> "$GITHUB_OUTPUT"

Build:
needs: Python-Versions
name: ${{ matrix.name }} Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ${{ github.event_name == 'pull_request' && fromJSON('["3.14"]') || fromJSON('["3.10", "3.11", "3.12", "3.13", "3.14"]') }}
python-version: ${{ github.event_name == 'pull_request' && fromJSON(needs.Python-Versions.outputs.pr) || fromJSON(needs.Python-Versions.outputs.all) }}
include:
- os: ubuntu-latest
name: Linux
Expand Down
Loading