Skip to content

Commit dcca00a

Browse files
committed
tox: setup github action
1 parent 8381644 commit dcca00a

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/tox.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Tox testing
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
max-parallel: 4
10+
matrix:
11+
python-version: [3.5, 3.6, 3.7, 3.8]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install tox tox-gh-actions
23+
- name: Test with tox
24+
run: tox

tox.ini

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
[tox]
2-
envlist = test,lint,flake8
2+
envlist = test,lint,flake8,py35,py36,py37,py38
3+
4+
[gh-actions]
5+
python =
6+
3.5: py35,test
7+
3.6: py36,test
8+
3.7: py37,test
9+
3.8: py38,test,lint,flake8
310

411
[testenv]
512
basepython = python3

0 commit comments

Comments
 (0)