Skip to content

Commit 8d45718

Browse files
authored
WIP: Enable github actions (#330)
1 parent cbfc38d commit 8d45718

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/tox.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: gh
2+
3+
on:
4+
create: # is used for publishing to PyPI and TestPyPI
5+
tags: # any tag regardless of its name, no branches
6+
push: # only publishes pushes to the main branch to TestPyPI
7+
branches: # any branch but not tag
8+
- >-
9+
**
10+
tags-ignore:
11+
- >-
12+
**
13+
pull_request:
14+
15+
jobs:
16+
build:
17+
name: ${{ matrix.name }}
18+
runs-on: ubuntu-18.04
19+
strategy:
20+
matrix:
21+
include:
22+
- name: linting
23+
python-version: 3.6
24+
- name: py36
25+
python-version: 3.6
26+
- name: py37
27+
python-version: 3.7
28+
- name: py38
29+
python-version: 3.8
30+
- name: pypy3
31+
python-version: pypy3
32+
steps:
33+
- uses: actions/checkout@master
34+
- name: Set up Python
35+
uses: actions/setup-python@v2
36+
with:
37+
python-version: ${{ matrix['python-version'] }}
38+
- name: Install tox
39+
run: |
40+
python -m pip install --upgrade tox
41+
- name: Test with tox
42+
run: |
43+
python -m tox -e ${{ matrix.name }}

0 commit comments

Comments
 (0)