Skip to content

Commit

Permalink
ci: add python 3.13 to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dimastbk committed Jul 15, 2024
1 parent ecf151f commit 13ec13b
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
test:
name: test ${{ matrix.python-version }} pandas ${{ matrix.pandas-version }}
name: test ${{ matrix.python-version }} pandas ${{ matrix.pandas-version }} ${{ matrix.disable-gil && 'free-threaded' || '' }}
strategy:
fail-fast: false
matrix:
Expand All @@ -35,6 +35,13 @@ jobs:
# https://github.com/pandas-dev/pandas/issues/42509
- python-version: 'pypy3.10'
pandas-version: 'none'
# https://github.com/pandas-dev/pandas/issues/58734
- python-version: '3.13'
pandas-version: 'none'
# https://github.com/pandas-dev/pandas/issues/58734
- python-version: '3.13'
pandas-version: 'none'
disable-gil: true

runs-on: ubuntu-latest

Expand All @@ -56,11 +63,19 @@ jobs:
key: v3

- name: set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
if: "${{ !matrix.disable-gil }}"
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: set up python (free-threaded)
uses: deadsnakes/action@v3.1.0
if: "${{ matrix.disable-gil }}"
with:
python-version: ${{ matrix.python-version }}
nogil: ${{ matrix.disable-gil }}

- id: cache-py
name: cache python
uses: actions/cache@v3
Expand Down Expand Up @@ -153,11 +168,11 @@ jobs:
ls: dir
target: i686
python-architecture: x86
interpreter: 3.8 3.9 3.10 3.11 3.12
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13 3.13-nogil
- os: windows
ls: dir
target: aarch64
interpreter: 3.11 3.12
interpreter: 3.11 3.12 3.13 3.13-nogil
- os: ubuntu
platform: linux
target: i686
Expand All @@ -167,7 +182,7 @@ jobs:
- os: ubuntu
platform: linux
target: armv7
interpreter: 3.8 3.9 3.10 3.11 3.12
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13 3.13-nogil
# musllinux
- os: ubuntu
platform: linux
Expand All @@ -180,11 +195,11 @@ jobs:
- os: ubuntu
platform: linux
target: ppc64le
interpreter: 3.8 3.9 3.10 3.11 3.12
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13 3.13-nogil
- os: ubuntu
platform: linux
target: s390x
interpreter: 3.8 3.9 3.10 3.11 3.12
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13 3.13-nogil
exclude:
# Windows on arm64 only supports Python 3.11+
- os: windows
Expand Down Expand Up @@ -215,7 +230,7 @@ jobs:
with:
target: ${{ matrix.target }}
manylinux: ${{ matrix.manylinux || 'auto' }}
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10' }}
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 3.13 3.13-nogil pypy3.8 pypy3.9 pypy3.10' }}
rust-toolchain: stable

- run: ${{ matrix.ls || 'ls -lh' }} dist/
Expand Down

0 comments on commit 13ec13b

Please sign in to comment.