Skip to content

Commit

Permalink
Add python3.6 to the actions matrix but exclude it from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Lefkowitz committed Jul 20, 2023
1 parent db42d35 commit c1c25ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/review.yml
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: "ubuntu-20.04"
strategy:
matrix:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- name: Checkout the source code
Expand All @@ -25,6 +25,11 @@ 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 "," -)
Expand Down

0 comments on commit c1c25ee

Please sign in to comment.