Skip to content

Commit bc85e42

Browse files
committed
Test build for pythons 3.6 through 3.9
1 parent 8bb36a8 commit bc85e42

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/pr.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@ jobs:
66
run-tests:
77
name: Run tests
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.6, 3.7, 3.8, 3.9]
912

1013
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-python@v2
14+
- uses: actions/checkout@v1
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
1317
with:
14-
python-version: 3.7
18+
python-version: ${{ matrix.python-version }}
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install tox tox-gh-actions
1524
1625
- name: Run tests
1726
run: make tests

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ develop:
1111

1212
tests:
1313
# skipping flake8 for now
14-
pip3 install --upgrade --quiet tox && tox -e py3
14+
pip3 install --upgrade --quiet tox && tox -p 4 -e py36,py37,py38,py39
1515

1616
docs:
1717
echo skipping temporarily...

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tox]
2-
envlist = py3,flake8,docs
2+
envlist = py{36,37,38,39},flake8,docs
3+
skip_missing_interpreters = true
34

45
[testenv]
56
setenv = HOSTNAME=hostname

0 commit comments

Comments
 (0)