Skip to content

Commit

Permalink
Review: Test on the current versions of CPython
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Oct 15, 2024
1 parent a8110a9 commit 33379db
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 33379db

Please sign in to comment.