Skip to content

Commit bea9e86

Browse files
authored
👷 move from travis to github actions (#172)
1 parent 1452b46 commit bea9e86

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflow/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: GH
2+
3+
on:
4+
pull_request:
5+
branches: '*'
6+
push:
7+
branches: 'master'
8+
tags: '*'
9+
10+
jobs:
11+
CI:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
max-parallel: 8
15+
matrix:
16+
python-version: [3.4, 3.5, 3.6, 3.7, 3.8]
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Pip cache
26+
uses: actions/cache@v2
27+
with:
28+
path: ~/.cache/pip
29+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/*.txt') }}
30+
restore-keys: |
31+
${{ runner.os }}-pip-
32+
- name: Install dependencies
33+
run: pip install -e ".[test]"
34+
35+
- name: Lint
36+
run: |
37+
isort --recursive --diff validators tests && isort --recursive --check-only validators tests
38+
flake8 validators tests
39+
40+
- name: Test
41+
run: py.test --doctest-glob="*.rst" --doctest-modules --ignore=setup.py

0 commit comments

Comments
 (0)