Skip to content

Commit

Permalink
Add more Python platforms for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rnc committed Oct 27, 2022
1 parent 479c13c commit 6065404
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/squash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.11]
python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -35,9 +35,8 @@ jobs:
run: |
docker version
docker info
python -c "import sys; print(sys.version)"
- name: Run tests
run: |
PV=$(echo ${{ matrix.python-version }} | cut -f1,2 -d'.' | tr -d '.')
echo "Running tests for Python version ${{ matrix.python-version }}"
make test-py"${PV}"
PV=${{ matrix.python-version }}
echo "Running tests for Python version $PV ( ${PV/./} )"
make test-py"${PV/./}"
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ test-py36: prepare
test-py37: prepare
tox -e py37 -- tests

test-py38: prepare
tox -e py38 -- tests

test-py39: prepare
tox -e py39 -- tests

test-py310: prepare
tox -e py310 -- tests

test-py311: prepare
tox -e py311 -- tests

Expand Down Expand Up @@ -43,5 +52,3 @@ release: clean
python setup.py sdist
twine check dist/*
twine upload dist/*


2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py35,py36,py37,py311
envlist = py27,py35,py36,py37,py38,py39,py310,py311

[testenv]
passenv=CI,HOME
Expand Down

0 comments on commit 6065404

Please sign in to comment.