Skip to content

Commit cfef0a3

Browse files
committed
update ci
1 parent 7e1c767 commit cfef0a3

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
"3.13",
4141
"3.14",
4242
"3.14t",
43+
"3.15",
44+
"3.15t",
4345
"pypy-3.11",
4446
]
4547
platform:
@@ -85,24 +87,35 @@ jobs:
8587
with:
8688
python-version: ${{ matrix.python-version }}
8789
architecture: ${{ matrix.platform.python-architecture }}
90+
allow-prereleases: ${{ startsWith(matrix.python-version, '3.15') }} # remove once 3.15 releases
91+
- name: Set up UV
92+
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
8893
- name: Install Rust
8994
uses: dtolnay/rust-toolchain@stable
9095
with:
9196
targets: ${{ matrix.platform.rust-target }}
9297
- name: Test
93-
run: |
94-
pip install "numpy" ml_dtypes
95-
cargo test --all-features
9698
# Not on PyPy, because no embedding API
9799
if: ${{ !startsWith(matrix.python-version, 'pypy') }}
100+
run: |
101+
uv pip install "numpy" ml_dtypes
102+
cargo test --all-features
103+
- name: Test abi3t
104+
if: ${{ matrix.python-version == '3.15t' }}
105+
run: |
106+
cargo test --all-features -F pyo3/abi3t
98107
- name: Test example
99108
run: |
100-
pip install nox
101-
nox -f examples/simple/noxfile.py
109+
uvx nox -f examples/simple/noxfile.py
102110
env:
103111
CARGO_TERM_VERBOSE: true
104112
CARGO_BUILD_TARGET: ${{ matrix.platform.rust-target }}
105113
RUST_BACKTRACE: 1
114+
UV_SYSTEM_PYTHON: true
115+
UV_PRERELEASE: ${{ startsWith(matrix.python-version, '3.15') && 'allow' || 'disallow' }} # remove once numpy 2.6 releases
116+
UV_NO_BUILD_PACKAGE: "numpy"
117+
UV_INDEX: ${{ startsWith(matrix.python-version, '3.15') && 'https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/' || '' }} # remove once numpy 2.6 releases
118+
NOX_DEFAULT_VENV_BACKEND: "uv"
106119

107120
test-numpy1:
108121
name: python${{ matrix.python-version }}-${{ matrix.platform.python-architecture }} ${{ matrix.platform.os }} numpy1

0 commit comments

Comments
 (0)