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 authored Oct 10, 2024
1 parent 78031f0 commit c955f6a
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ on: [push, pull_request]
jobs:
review:
name: Run linters and tests
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-latest"
strategy:
matrix:
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
python: ["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 @@ -25,23 +25,17 @@ 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 }}
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

0 comments on commit c955f6a

Please sign in to comment.