Skip to content

Commit

Permalink
TST: Python 3.13 support (#3210)
Browse files Browse the repository at this point in the history
* TST: Add Linux job to use Python 3.13

Ignore DeprecationWarning from ipykernel.

* TST: Use Python 3.13 on devdeps
  • Loading branch information
pllim authored Dec 24, 2024
1 parent 24c4440 commit 48be154
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,18 @@ jobs:
toxenv: py310-test
allow_failure: false

- name: Linux - Python 3.13
os: ubuntu-latest
python: '3.13'
toxenv: py313-test
allow_failure: false

# This also runs on cron but we want to make sure new changes
# won't break this job at the PR stage.
- name: Python 3.12 with latest dev versions of key dependencies, and remote data
- name: Python 3.13 with latest dev versions of key dependencies, and remote data
os: ubuntu-latest
python: '3.12'
toxenv: py312-test-devdeps
python: '3.13'
toxenv: py313-test-devdeps
toxposargs: --remote-data --run-slow
allow_failure: true

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ filterwarnings = [
"ignore:datetime\\.datetime\\.utcfromtimestamp:DeprecationWarning", # asdf + dateutil<=2.8.2 + Python 3.12
"ignore:'audioop' is deprecated and slated for removal in Python 3.13",
"ignore:Importing display from IPython.core.display is deprecated since IPython 7.14, please import from IPython.display",
"ignore:Parsing dates involving a day of month without a year:DeprecationWarning", # ipykernel<7
"ignore::DeprecationWarning:glue",
"ignore::DeprecationWarning:asteval",
"ignore:::specutils.spectra.spectrum1d",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{310,311,312}-test{,-alldeps,-devdeps,-predeps}{-romandeps,-straussdeps}{,-cov}
py{310,311,312,313}-test{,-alldeps,-devdeps,-predeps}{-romandeps,-straussdeps}{,-cov}
linkcheck
codestyle
pep517
Expand Down

0 comments on commit 48be154

Please sign in to comment.