Skip to content

Commit 13bacac

Browse files
committed
Run tox via Github action.
1 parent 491bb97 commit 13bacac

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/tests.yml

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

tox.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ recreate = True
55
[tox:hudson]
66
downloadcache = {toxworkdir}/_download
77

8+
[gh-actions]
9+
python =
10+
2.6: py26
11+
2.7: py27
12+
3.3: py33
13+
3.4: py34
14+
3.5: py35
15+
3.6: py36
16+
3.7: py37
17+
818
[testenv]
919
deps =
1020
pytest>=2.0.0

0 commit comments

Comments
 (0)