Skip to content

Commit d7c40da

Browse files
committed
Add github action because travis-ci shut down
1 parent c82e4a4 commit d7c40da

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test
2+
3+
on:
4+
- push
5+
6+
jobs:
7+
build-test:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.7']
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
architecture: x64
23+
cache: 'pip'
24+
cache-dependency-path: '**/dev-requirements'
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
python -m pip install --upgrade setuptools
29+
python -m pip install -e .[dev]
30+
python -m pip install tox tox-gh-actions
31+
- name: Test with tox
32+
run: tox

tox.ini

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
[tox]
2-
envlist = py27, py36, py37, py38, pypy, pypy3
2+
envlist = py37, py38, py39, py310, pypy3
3+
4+
5+
[gh-actions]
6+
python =
7+
3.7: py37
8+
3.8: py38
9+
3.9: py39
10+
3.10: py310
11+
pypy-3.7: pypy3
312

413
[testenv]
514
deps =

0 commit comments

Comments
 (0)