Skip to content

Commit 7f6d0ea

Browse files
committed
configure github actions and test python 3.9
1 parent 5395c94 commit 7f6d0ea

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

.github/workflows/tox_run.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Tests
2+
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
6+
push:
7+
branches:
8+
- master
9+
- develop
10+
pull_request:
11+
branches:
12+
- master
13+
- develop
14+
15+
jobs:
16+
test:
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
max-parallel: 3
21+
matrix:
22+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
23+
fail-fast: false
24+
25+
steps:
26+
- uses: actions/checkout@v1
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v2
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip
34+
pip install tox tox-gh-actions
35+
- name: Test with tox
36+
run: tox -e py
37+
38+
39+
coverage:
40+
runs-on: ubuntu-latest
41+
strategy:
42+
matrix:
43+
python-version: ["3.7"]
44+
fail-fast: false
45+
46+
steps:
47+
- uses: actions/checkout@v1
48+
- name: Set up Python ${{ matrix.python-version }}
49+
uses: actions/setup-python@v2
50+
with:
51+
python-version: ${{ matrix.python-version }}
52+
- name: Install dependencies
53+
run: |
54+
python -m pip install --upgrade pip
55+
pip install tox
56+
- name: Measure coverage
57+
run: tox -e coverage

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ tag_prefix = v
77

88

99
[tox:tox]
10-
envlist = py27,py34,py35,py36,py37,py38
10+
envlist = py27,py35,py36,py37,py38,py39
1111

1212
[testenv]
1313
deps = pytest
14+
six
1415

1516
commands = pytest tests/
1617
# See the docstring in versioneer.py for instructions. Note that you must

0 commit comments

Comments
 (0)