Skip to content

Commit

Permalink
Run tests on Python 3.13 (#292)
Browse files Browse the repository at this point in the history
* Run pydantic's tests on py312; bump PyPy to PyPy3.10 for typeguard's tests

Pydantic started testing with py312 in pydantic/pydantic@ea7bf54

Typeguard bumped the version of PyPy they test with in CI in agronholm/typeguard@9aa873a

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
hugovk and AlexWaygood authored Oct 19, 2023
1 parent 04f9895 commit fda0c15
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 23 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ jobs:
- "3.11"
- "3.11.0"
- "3.12"
- "3.13"
- "pypy3.8"
- "pypy3.9"
- "pypy3.10"

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -82,7 +83,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3

Expand All @@ -50,10 +50,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3

Expand Down
33 changes: 17 additions & 16 deletions .github/workflows/third_party.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,27 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.9"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout pydantic
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: pydantic/pydantic
- name: Edit pydantic pyproject.toml
# pydantic's python-requires means pdm won't let us add typing-extensions-latest
# as a requirement unless we do this
run: sed -i 's/^requires-python = .*/requires-python = ">=3.8"/' pyproject.toml
- name: Checkout typing_extensions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup pdm for pydantic tests
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
allow-python-prereleases: true
- name: Add local version of typing_extensions as a dependency
run: pdm add ./typing-extensions-latest
- name: Install pydantic test dependencies
Expand Down Expand Up @@ -90,12 +91,12 @@ jobs:
timeout-minutes: 60
steps:
- name: Checkout typing_inspect
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ilevkivskyi/typing_inspect
path: typing_inspect
- name: Checkout typing_extensions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup Python
Expand Down Expand Up @@ -133,12 +134,12 @@ jobs:
timeout-minutes: 60
steps:
- name: Check out pyanalyze
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: quora/pyanalyze
path: pyanalyze
- name: Checkout typing_extensions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup Python
Expand Down Expand Up @@ -172,17 +173,17 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.10"]
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Check out typeguard
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: agronholm/typeguard
path: typeguard
- name: Checkout typing_extensions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup Python
Expand Down Expand Up @@ -221,12 +222,12 @@ jobs:
timeout-minutes: 60
steps:
- name: Check out typed-argument-parser
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: swansonk14/typed-argument-parser
path: typed-argument-parser
- name: Checkout typing_extensions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup Python
Expand Down Expand Up @@ -272,12 +273,12 @@ jobs:
timeout-minutes: 60
steps:
- name: Checkout mypy for stubtest and mypyc tests
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: python/mypy
path: mypy
- name: Checkout typing_extensions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup Python
Expand Down Expand Up @@ -319,11 +320,11 @@ jobs:
timeout-minutes: 60
steps:
- name: Checkout cattrs
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: python-attrs/cattrs
- name: Checkout typing_extensions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: typing-extensions-latest
- name: Setup Python
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]
isolated_build = True
envlist = py38, py39, py310, py311, py312
envlist = py38, py39, py310, py311, py312, py313

[testenv]
changedir = src
Expand Down

0 comments on commit fda0c15

Please sign in to comment.