Skip to content

Commit

Permalink
ci: Add pydantic 2.7 to test matrix (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
mansenfranzen authored Apr 12, 2024
1 parent 0d582c7 commit afdec96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:

jobs:
test-stable-versions:
test-stable:
environment: Tests
strategy:
fail-fast: false
Expand Down Expand Up @@ -47,6 +47,9 @@ jobs:
- python_version: "3.12"
pydantic_version: "26"
sphinx_version: "72"
- python_version: "3.12"
pydantic_version: "27"
sphinx_version: "72"
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand All @@ -60,7 +63,7 @@ jobs:
install-graphviz: true
codacy: ${{ secrets.CODACY_PROJECT_TOKEN }}

test-latest-version:
test-latest:
environment: Tests
runs-on: ubuntu-22.04
steps:
Expand All @@ -74,7 +77,7 @@ jobs:
install-graphviz: true
codacy: ${{ secrets.CODACY_PROJECT_TOKEN }}

test-no-erdantic-version:
test-no-erdantic:
environment: Tests
runs-on: ubuntu-22.04
steps:
Expand All @@ -86,7 +89,7 @@ jobs:
with:
tox-environment: no_erdantic

test-development-versions-deps:
test-development:
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{37,38,39,310,311,312}-pydantic{20,21,22,23,24,25,26,latest}-sphinx{40,45,53,62,70,71,72,latest}, latest, development, no_erdantic, linter
envlist = py{37,38,39,310,311,312}-pydantic{20,21,22,23,24,25,26,27,latest}-sphinx{40,45,53,62,70,71,72,latest}, latest, development, no_erdantic, linter
isolated_build = True

[testenv]
Expand All @@ -12,7 +12,7 @@ commands =
coverage report -m
coverage xml

[testenv:pydantic{20,21,22,23,24,25,latest}-sphinx{40,45,53,62,70,71,72,latest}]
[testenv:pydantic{20,21,22,23,24,25,26,27,latest}-sphinx{40,45,53,62,70,71,72,latest}]
description = "Test specific historical stable versions."
deps =
pydantic20: pydantic~=2.0.0
Expand All @@ -22,6 +22,7 @@ deps =
pydantic24: pydantic~=2.4.0
pydantic25: pydantic~=2.5.0
pydantic26: pydantic~=2.6.0
pydantic27: pydantic~=2.7.0
pydanticlatest: pydantic

; pins for sphinx 4.X compatibility from
Expand Down

0 comments on commit afdec96

Please sign in to comment.