Skip to content

Commit c93d4fc

Browse files
committed
ci: Replace Travis CI with GitHub Actions
* Add a GitHub Actions workflow largely borrowed from <https://github.com/tox-dev/tox-gh>. * Remove Travis CI config Resolves #10
1 parent 3e44b48 commit c93d4fc

3 files changed

Lines changed: 43 additions & 23 deletions

File tree

.github/workflows/tox.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: tox
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
concurrency:
9+
group: tox-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
test:
14+
name: test with ${{ matrix.py }} on ${{ matrix.os }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
py:
20+
- "3.7"
21+
- "3.8"
22+
- "3.9"
23+
- "3.10"
24+
- "3.11"
25+
os:
26+
- ubuntu-latest
27+
# - macos-latest
28+
# - windows-latest
29+
steps:
30+
- uses: actions/checkout@v3
31+
with:
32+
fetch-depth: 0
33+
- name: Setup python for test ${{ matrix.py }}
34+
uses: actions/setup-python@v4
35+
with:
36+
python-version: ${{ matrix.py }}
37+
- name: Install tox
38+
run: python -m pip install tox-gh>=1.2
39+
- name: Setup test suite
40+
run: tox -vv --notest
41+
- name: Run test suite
42+
run: tox --skip-pkg-install

.travis.yml

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

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
[tox]
22
minversion=1.6
33
skipsdist=True
4-
envlist=flake8,py27,py34,py35,py36,py37,docs
4+
envlist=flake8,py37,py38,py39,py310,py311,docs
55

66
[testenv]
77
deps=
88
-r{toxinidir}/requirements.txt
99
coverage
1010
nose
11-
py27: mock
1211
setenv=
1312
PYTHONDONTWRITEBYTECODE=true
1413
commands=

0 commit comments

Comments
 (0)