Skip to content

Commit

Permalink
Install 3.13 from deadsnakes
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Aug 15, 2024
1 parent 366cb05 commit fac8c88
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,25 @@ jobs:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
if: ${{ !endsWith(matrix.python-version, 't') }}
if: ${{ !endsWith(matrix.python-version, 't') && matrix.python-version != '3.13' }}
with:
python-version: ${{ matrix.python-version }}

- uses: deadsnakes/action@6c8b9b82fe0b4344f4b98f2775fcc395df45e494 # v3.1.0
- name: Setup free-threaded variables
if: ${{ endsWith(matrix.python-version, 't') }}
run: |
echo "FREE_THREADED=1" >> "$GITHUB_ENV"
- uses: deadsnakes/action@6c8b9b82fe0b4344f4b98f2775fcc395df45e494 # v3.1.0
if: ${{ endsWith(matrix.python-version, 't') || matrix.python-version == '3.13' }}
with:
python-version: "3.13"
nogil: true
nogil: ${{ env.FREE_THREADED == '1' }}

- name: Install tox
run: pip install tox

- name: Test
env:
PYTHON_GIL: ${{ env.FREE_THREADED != '1' }}
run: tox -e py

0 comments on commit fac8c88

Please sign in to comment.