diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 883ffc2..c8aa4c4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 @@ -30,6 +30,7 @@ jobs: python -m pip install --upgrade pip pip install pylint pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if [ ${{ matrix.python-version }} == "3.12" ]; then pip install setuptools; fi - name: Analysing the code with pylint run: | pylint $(git ls-files '*.py') @@ -42,10 +43,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@v3 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: | python -m venv venv diff --git a/mypy.ini b/mypy.ini index dc9e4a7..ef472db 100644 --- a/mypy.ini +++ b/mypy.ini @@ -4,6 +4,6 @@ python_version = 3.11 exclude = build disallow_untyped_defs = True -python_executable = venv/bin/python3.11 +python_executable = venv/bin/python3.12 follow_imports = silent plugins = pydantic.mypy