Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.

Commit 5610f2f

Browse files
authored
Use github actions instead of travis (#103)
1 parent 35780e1 commit 5610f2f

File tree

5 files changed

+52
-39
lines changed

5 files changed

+52
-39
lines changed

.github/workflows/tests.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: tests
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- '*.x'
8+
pull_request:
9+
branches:
10+
- master
11+
- '*.x'
12+
jobs:
13+
tests:
14+
name: ${{ matrix.python }}
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
python:
20+
- '3.9'
21+
- '3.8'
22+
- '3.7'
23+
- '3.6'
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-python@v2
27+
with:
28+
python-version: ${{ matrix.python }}
29+
- uses: actions/cache@v1
30+
with:
31+
path: ~/.cache/pip
32+
key: pip|${{ hashFiles('setup.py') }}|${{ hashFiles('tox.ini') }}
33+
- run: pip install tox
34+
- run: tox -e py
35+
style:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v2
39+
- uses: actions/setup-python@v2
40+
with:
41+
python-version: '3.9'
42+
- uses: actions/cache@v1
43+
with:
44+
path: ~/.cache/pip
45+
key: pip|${{ hashFiles('setup.py') }}|${{ hashFiles('tox.ini') }}
46+
- uses: actions/cache@v1
47+
with:
48+
path: ~/.cache/pre-commit
49+
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }}
50+
- run: pip install tox
51+
- run: tox -e flake8

.travis.yml

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

Pipfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ tox = ">=3.0.0"
1616
"flake8" = ">=0.6.1"
1717
tox-pyenv = ">=1.1.0"
1818
invoke = ">=0.23.0"
19-
tox-travis = "*"
2019
importlib_resources = "*"
2120

2221
[requires]

Pipfile.lock

Lines changed: 1 addition & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ passenv =
1818
CI
1919
PYTEST_ADDOPTS
2020
TERM
21-
coverage: TRAVIS TRAVIS_*
2221
setenv =
2322
coverage: PYTEST_ADDOPTS=--cov --cov-report=term-missing {env:PYTEST_ADDOPTS:}
2423
commands = pytest {posargs:tests}

0 commit comments

Comments
 (0)