Skip to content

Commit

Permalink
test: python 3.12 (#225)
Browse files Browse the repository at this point in the history
* test: add 3.12

* ci: install numpy from github

* chore: remove numpy intsall from github

* test: try skip checking msgspec

* build: add classifier
  • Loading branch information
tlambert03 authored Sep 19, 2023
1 parent 837406e commit 3933198
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
- platform: windows-latest
python-version: "3.11"
pydantic: "pydantic<2"
- platform: ubuntu-latest
python-version: "3.12-dev"
backend: ""

steps:
- uses: actions/checkout@v4
Expand All @@ -61,11 +64,12 @@ jobs:

- uses: tlambert03/[email protected]
if: matrix.backend != ''

- name: Install ${{ matrix.backend }}
if: matrix.backend != ''
run: |
python -m pip install -e .[testqt]
python -m pip install ${{ matrix.backend }}
if: matrix.backend != ''
- name: install
run: |
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
dynamic = ["version"]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_dataclass_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

try:
from msgspec import Struct
except ImportError:
Struct = None
except (ImportError, TypeError): # type error on python 3.12-dev
Struct = None # type: ignore [assignment,misc]

try:
from pydantic import __version__ as pydantic_version
Expand Down

0 comments on commit 3933198

Please sign in to comment.