Skip to content

Commit

Permalink
Test with Python 3.13 (beta) (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
faph authored Jul 29, 2024
2 parents c7a2a6a + ec1cca8 commit 9776176
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ jobs:
- '3.9'
- '3.10'
- '3.11'
- '3.12-dev'
- '3.12'
- '3.13-dev'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
19 changes: 10 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
# Tox virtual environment manager for testing and quality assurance

[tox]
envlist = py39, py310, py311, py312, linting, docs
envlist =
py39
py310
py311
py312
py313
linting
docs
isolated_build = True
# Developers may not have all Python versions
skip_missing_interpreters = true
Expand All @@ -23,8 +30,9 @@ skip_missing_interpreters = true
python =
3.9: py39
3.10: py310
3.11: py311, linting, docs
3.11: py311
3.12: py312
3.13: py313, linting, docs

[testenv]
# Base test environment
Expand Down Expand Up @@ -65,10 +73,3 @@ extras =
commands =
# Command exactly as executed on readthedocs.org. See https://readthedocs.org/projects/inference-server/builds/.
python -m sphinx -T -E -W --keep-going -b html -d {toxinidir}{/}docs{/}_build{/}doctrees -D language=en {toxinidir}{/}docs {toxinidir}{/}docs{/}_build{/}html

[testenv:py312]
# Overrides for Python 3.12 (dev) test environment
# TODO: remove entire section once Python 3.12 is released (October 2023)

# Allow tests for alpha/beta Python release to fail. Show warnings only.
ignore_outcome = true

0 comments on commit 9776176

Please sign in to comment.