Skip to content

Support Python 3.12 and 3.13 #358

Support Python 3.12 and 3.13

Support Python 3.12 and 3.13 #358

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
job:
name: Test (Python ${{ matrix.python }})
runs-on: ubuntu-latest
env:
POETRY_VIRTUALENVS_CREATE: false
strategy:
fail-fast: false
matrix:
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install project dependencies
run: pip install poetry==1.8.5 && poetry install
- name: Test code's formatting (Black)
run: black --check docs tests pandas_dataclasses
- name: Test code's typing (Pyright)
run: pyright docs tests pandas_dataclasses
- name: Test code's typing (mypy)
run: mypy docs tests pandas_dataclasses
- name: Test code's execution (pytest)
run: pytest -v tests
- name: Test docs' building (Sphinx)
if: ${{ matrix.python != '3.9' }}
run: docs/build