Skip to content

Commit b166486

Browse files
authored
Switch CI from Travis to GitHub Actions (#41)
Fix #39.
1 parent 4693a5a commit b166486

File tree

3 files changed

+71
-46
lines changed

3 files changed

+71
-46
lines changed

.github/workflows/test.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- "test-me-*"
8+
tags:
9+
- "*"
10+
pull_request:
11+
branches:
12+
- master
13+
14+
# Set permissions at the job level.
15+
permissions: {}
16+
17+
jobs:
18+
lint:
19+
runs-on: ubuntu-20.04
20+
timeout-minutes: 10
21+
permissions:
22+
contents: read
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- uses: actions/setup-python@v4
28+
with:
29+
python-version: 3.11
30+
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip
34+
pip install tox
35+
36+
- name: Lint
37+
run: tox -e lint
38+
39+
test:
40+
runs-on: ubuntu-20.04
41+
timeout-minutes: 10
42+
permissions:
43+
contents: read
44+
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
python: [
49+
"3.7.1",
50+
"3.7",
51+
"3.8",
52+
"3.9",
53+
"3.10",
54+
"3.11",
55+
]
56+
57+
steps:
58+
- uses: actions/checkout@v3
59+
60+
- uses: actions/setup-python@v4
61+
with:
62+
python-version: ${{ matrix.python }}
63+
64+
- name: Install dependencies
65+
run: |
66+
python -m pip install --upgrade pip
67+
pip install tox
68+
69+
- name: Test
70+
run: tox -e py

.travis.yml

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

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ commands = python -m unittest discover tests
99

1010
[testenv:lint]
1111
description = check the code style
12-
basepython = python3.7
12+
basepython = python3
1313
deps = flake8
1414
commands = flake8 -j0 {posargs}
1515

0 commit comments

Comments
 (0)