platform: linux
- os: windows
ls: dir
- interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10
+ interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.8 pypy3.9 pypy3.10
- os: windows
ls: dir
target: i686
python-architecture: x86
- interpreter: 3.7 3.8 3.9 3.10 3.11
+ interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13
- os: windows
ls: dir
target: x86_64
python-architecture: x64
- interpreter: 3.7 3.8 3.9 3.10 3.11
+ interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13
# - os: windows
# ls: dir
# target: aarch64
# interpreter: 3.11 3.12
- os: macos
target: aarch64
- interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10
+ interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.8 pypy3.9 pypy3.10
- os: ubuntu
platform: linux
target: i686
- os: ubuntu
platform: linux
target: armv7
- interpreter: 3.7 3.8 3.9 3.10 3.11 3.12
+ interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13
# musllinux
- os: ubuntu
platform: linux
- os: ubuntu
platform: linux
target: ppc64le
- interpreter: 3.7 3.8 3.9 3.10 3.11 3.12
+ interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13
- os: ubuntu
platform: linux
target: s390x
- interpreter: 3.7 3.8 3.9 3.10 3.11 3.12
+ interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13
exclude:
# Optimized PGO builds for x86_64 manylinux and windows follow a different matrix,
# maybe in future maturin-action can support this automatically
- name: set up python
uses: actions/setup-python@v4
with:
- python-version: '3.11'
+ python-version: '3.12'
architecture: ${{ matrix.python-architecture || 'x64' }}
- run: pip install -U twine
working-directory: ./bindings/python
manylinux: ${{ matrix.manylinux || 'auto' }}
container: ${{ matrix.container }}
- args: --release --out dist --interpreter ${{ matrix.interpreter || '3.7 3.8 3.9 3.10 3.11 3.12 pypy3.7 pypy3.8 pypy3.9 pypy3.10' }} ${{ matrix.extra-build-args }}
+ args: --release --out dist --interpreter ${{ matrix.interpreter || '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.7 pypy3.8 pypy3.9 pypy3.10' }} ${{ matrix.extra-build-args }}
rust-toolchain: stable
docker-options: -e CI
- name: Install Python
uses: actions/setup-python@v4
with:
- python-version: "3.10"
+ python-version: "3.12"
architecture: x64
- name: Retrieve all wheels
os: [ubuntu-latest, macos-latest, windows-latest]
# Lowest and highest, no version specified so that
# new releases get automatically tested against
- version: [{torch: torch==1.10, python: "3.8"}, {torch: torch, python: "3.10"}]
+ version: [{torch: torch==1.10, python: "3.8"}, {torch: torch, python: "3.11"}]
defaults:
run:
working-directory: ./bindings/python
- name: Install
run: |
pip install -U pip
- pip install .[numpy,tensorflow,paddlepaddle]
+ pip install .[numpy,tensorflow]
pip install ${{ matrix.version.torch }}
- name: Install (jax, flax)
import numpy as np
-import paddle
-from safetensors.paddle import load_file, save_file
+try:
+ import paddle
+ from safetensors.paddle import load_file, save_file
+ HAS_PADDLE = True
+except ImportError:
+ HAS_PADDLE = False
+
+
+@unittest.skipIf(not HAS_PADDLE, "Paddle is not available")
class SafeTestCase(unittest.TestCase):
def setUp(self):
data = {