diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index 36326de8..c47b0907 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -10,15 +10,15 @@ runs: using: composite steps: - name: Checkout the source code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set the python version - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} - name: Set up pip package caching - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index fe831382..7f6d764a 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -9,14 +9,14 @@ jobs: strategy: fail-fast: false matrix: - python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] + python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - name: Checkout the source code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set the python version - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} @@ -26,23 +26,23 @@ jobs: python-version: ${{ matrix.python }} - name: Run tests - + # Python 3.6 tests have been removed since swagger-spec-validator no longer supports it. # A successful workflow run for Python 3.6 is required by the GitHub branch protection rules. if: ${{ matrix.python != 3.6 }} - + env: PYTHON_VERSION: ${{ matrix.python }} run: tox -e $(tox -l | grep py${PYTHON_VERSION//.} | paste -sd "," -) - name: Report coverage - if: ${{ matrix.python == 3.9 }} + if: ${{ matrix.python != 3.6 }} run: | pip install coverage coverage report - name: Check for incompatibilities with publishing to PyPi - if: ${{ matrix.python == 3.8 }} + if: ${{ matrix.python == 3.11 }} run: | pip install -r requirements/publish.txt python setup.py sdist diff --git a/pyproject.toml b/pyproject.toml index 4b48be08..b89cbc18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["setuptools >= 40.6.3", "wheel", "setuptools-scm >= 3.0.3"] +requires = ["setuptools >= 68.0.0, "wheel", "setuptools-scm >= 3.0.3"] build-backend = "setuptools.build_meta" diff --git a/tox.ini b/tox.ini index 22dbda24..5d7b80b3 100644 --- a/tox.ini +++ b/tox.ini @@ -7,10 +7,12 @@ isolated_build_env = .package envlist = py{37,38,39}-django{22,30}-drf{310,311,312}, py{37,38,39}-django{31,32}-drf{311,312}, - py{39,310}-django{40,41}-drf{313,314} - py311-django{40,41,42}-drf314 + py{39,310}-django{40,41}-drf{313,314}, + py311-django{40,41,42,50,51}-drf314, + py312-django{42,50,51}-drf314, + py313-django{51}-drf314, py38-{lint, docs}, - py310-djmaster + py313-djmaster skip_missing_interpreters = true