Skip to content

Commit 922ec9b

Browse files
committed
Test with 3.13t
1 parent 9a8d591 commit 922ec9b

File tree

2 files changed

+31
-18
lines changed

2 files changed

+31
-18
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
fail-fast: false
3535
matrix:
36-
python_minor: [ '9', '10', '11', '12', '13' ]
36+
python_minor: [ '9', '10', '11', '12', '13', '13t' ]
3737
os: [ ubuntu-latest ]
3838
# Just a single ARM worker to be sure that it works
3939
include:
@@ -193,22 +193,10 @@ jobs:
193193
uses: actions/setup-python@v5
194194
with:
195195
python-version: '3.9'
196-
- name: Set up Python 3.10
196+
- name: Set up Python 3.13t
197197
uses: actions/setup-python@v5
198198
with:
199-
python-version: '3.10'
200-
- name: Set up Python 3.11
201-
uses: actions/setup-python@v5
202-
with:
203-
python-version: '3.11'
204-
- name: Set up Python 3.12
205-
uses: actions/setup-python@v5
206-
with:
207-
python-version: '3.12'
208-
- name: Set up Python 3.13
209-
uses: actions/setup-python@v5
210-
with:
211-
python-version: '3.13'
199+
python-version: '3.13t'
212200
- name: Get minimum supported Rust version
213201
run: echo "::set-output name=msrv::$(grep '^rust-version = ' Cargo.toml | grep -o '[0-9.]\+')"
214202
id: get_msrv
@@ -228,4 +216,5 @@ jobs:
228216
- name: Build
229217
run: |
230218
rustup default ${{ steps.get_msrv.outputs.msrv }}
231-
maturin build --find-interpreter
219+
maturin build -i python3.9
220+
maturin build -i python3.13t

light-curve/pyproject.toml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,19 @@ dev = [
6262
"black",
6363
"ruff",
6464
]
65+
# cesium and iminuit don't support free-threading yet
66+
dev-free-threading = [
67+
"pytest",
68+
"markdown-pytest",
69+
"pytest-benchmark",
70+
"pytest-subtests>=0.10",
71+
"numpy",
72+
"scipy",
73+
"joblib",
74+
"pandas",
75+
"black",
76+
"ruff",
77+
]
6578

6679
[tool.maturin]
6780
# It asks to use Cargo.lock to make the build reproducible
@@ -148,10 +161,10 @@ markers = [
148161
[tool.tox]
149162
legacy_tox_ini = """
150163
[tox]
151-
envlist = py{39,310,311,312,313}-{base,test}
164+
envlist = py{39,310,311,312,313,313t}-{base,test}
152165
isolated_build = True
153166
154-
[testenv:py{39,310,311,312,313}-base]
167+
[testenv:py{39,310,311,312,313,313t}-base]
155168
change_dir = {envtmpdir}
156169
extras =
157170
commands =
@@ -166,6 +179,17 @@ commands =
166179
ruff check .
167180
set_env =
168181
CARGO_TARGET_DIR = {tox_root}/target
182+
183+
[testenv:py313t-test]
184+
extras = dev-free-threading
185+
commands =
186+
pytest README.md tests/ light_curve/ \
187+
--ignore tests/test_w_bench.py \
188+
--ignore=tests/light_curve_py/features/test_rainbow.py \
189+
--deselect=README.md::test_rainbow_fit_example
190+
ruff check .
191+
set_env =
192+
CARGO_TARGET_DIR = {tox_root}/target
169193
"""
170194

171195

0 commit comments

Comments
 (0)