Skip to content

Commit d8480ed

Browse files
authored
Create github workflow to run tox
1 parent ef8f40e commit d8480ed

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/tox.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: tox CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
max-parallel: 4
17+
matrix:
18+
python-version: ['3.6', '3.7', '3.8', '3.9']
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Setup Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python }}
26+
- name: Update pip
27+
run: python3 -m pip install -U pip
28+
- name: Install tox
29+
run: python3 -m pip install tox
30+
- name: Run tox
31+
run: python3 -m tox

0 commit comments

Comments
 (0)