10000 Replace Travis with GitHub actions · Dzikpol/python-stdnum@5785afb · GitHub
[go: up one dir, main page]

Skip to content

Commit 5785afb

Browse files
committed
Replace Travis with GitHub actions
1 parent 7c0bb84 commit 5785afb

File tree

2 files changed

+51
-21
lines changed

2 files changed

+51
-21
lines changed

.github/workflows/test.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
3+
name: Test
4+
5+
on:
6+
push:
7+
pull_request:
8+
schedule:
9+
- cron: '9 0 * * 1'
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, pypy-2.7, pypy-3.6]
17+
fail-fast: false
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: python -m pip install --upgrade pip tox
26+
- name: Run tox
27+
run: tox -e "$(echo py${{ matrix.python-version }} | sed -e 's/[.-]//g;s/pypypy/pypy/')" --skip-missing-interpreters false
28+
docs:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Set up Python 3.8
33+
uses: actions/setup-python@v2
34+
with:
35+
python-version: 3.8
36+
- name: Install dependencies
37+
run: python -m pip install --upgrade pip tox
38+
- name: Run tox
39+
run: tox -e docs --skip-missing-interpreters false
40+
flake8:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- name: Set up Python 3.8
45+
uses: actions/setup-python@v2
46+
with:
47+
python-version: 3.8
48+
- name: Install dependencies
49+
run: python -m pip install --upgrade pip tox
50+
- name: Tox
51+
run: tox -e flake8 --skip-missing-interpreters false

.travis.yml

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

0 commit comments

Comments
 (0)
0