Skip to content

Commit

Permalink
ops: Python 3.13 support
Browse files Browse the repository at this point in the history
We also drop Python 3.9 because there's no SciPy version that supports
both 3.9 and 3.13. We mask system Python to force Poetry to use the
version provided by the setup-python action.
  • Loading branch information
kerberizer committed Nov 19, 2024
1 parent 5361946 commit a7028d2
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 154 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,18 @@ jobs:
- '3.10'
- '3.11'
- '3.12'
- '3.13'

steps:

- name: Checkout the repository
uses: actions/[email protected]

- name: Mask existing system Python
run: >
which -a python{,3} | tr '\n' '\0' | xargs -0 stat -t &&
which -a python{,3} | tr '\n' '\0' | xargs -0 sudo rm -f
- name: Setup Python
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -68,7 +74,7 @@ jobs:

- name: Install dependencies
if: steps.cached-deps.outputs.cache-hit != 'true'
run: poetry install --no-interaction
run: which -a python{,3}; poetry install --no-interaction -vvv

- name: Run pre-commit
run: >-
Expand Down
Loading

0 comments on commit a7028d2

Please sign in to comment.