Skip to content

Commit 8bb73a3

Browse files
committed
chore(ci): replace travis with Actions
1 parent 55cbd1c commit 8bb73a3

File tree

3 files changed

+65
-108
lines changed

3 files changed

+65
-108
lines changed

.github/workflows/lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
black:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-python@v2
11+
- uses: psf/black@stable
12+
with:
13+
black_args: ". --check"
14+
commitlint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
- uses: wagoid/commitlint-github-action@v2

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
unit:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
include:
11+
- python-version: 3.6
12+
toxenv: py36
13+
- python-version: 3.7
14+
toxenv: py37
15+
- python-version: 3.8
16+
toxenv: py38
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: pip install tox
25+
- name: Run tests
26+
env:
27+
TOXENV: ${{ matrix.toxenv }}
28+
run: tox
29+
functional:
30+
runs-on: ubuntu-latest
31+
strategy:
32+
matrix:
33+
toxenv: [py_func_v4, py_func_cli]
34+
steps:
35+
- uses: actions/checkout@v2
36+
- name: Set up Python ${{ matrix.python-version }}
37+
uses: actions/setup-python@v2
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
- name: Install dependencies
41+
run: pip install tox
42+
- name: Run tests
43+
env:
44+
TOXENV: ${{ matrix.toxenv }}
45+
run: tox

.travis.yml

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)