Skip to content

Commit 4265f37

Browse files
committed
add GitHub actions config
1 parent d1f2da3 commit 4265f37

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
jobs:
10+
tox:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
max-parallel: 5
14+
matrix:
15+
python-version:
16+
- 3.6
17+
- 3.7
18+
- 3.8
19+
- pypy3
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install tox
27+
run: |
28+
python -m pip install --upgrade pip setuptools
29+
pip install --upgrade tox tox-gh-actions
30+
- name: Initialize tox envs
31+
run: |
32+
tox --parallel auto --notest
33+
- name: Test with tox
34+
run: |
35+
tox --parallel 0
36+
- uses: codecov/codecov-action@v1
37+
with:
38+
file: ./coverage.xml

0 commit comments

Comments
 (0)