Skip to content

Commit 63129e2

Browse files
committed
move to github action
1 parent bfa1ae7 commit 63129e2

File tree

2 files changed

+54
-23
lines changed

2 files changed

+54
-23
lines changed

.github/workflows/main.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: readit
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
pre-commit:
7+
name: Pre-Commit Checks
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout to master
11+
uses: actions/checkout@master
12+
13+
- name: Setup python
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: '3.7'
17+
architecture: 'x64'
18+
19+
- name: Pre-Commit Checks
20+
run: |
21+
python -m pip install pre-commit
22+
pre-commit run -a
23+
24+
- name: Analysis (git diff)
25+
if: failure()
26+
run: git diff
27+
28+
tests:
29+
name: Test-${{ matrix.os }}-Py${{ matrix.python-version }}
30+
needs: pre-commit
31+
runs-on: ${{ matrix.os }}
32+
strategy:
33+
matrix:
34+
os: [ubuntu-latest, windows-latest, macos-latest]
35+
python-version: [ '3.6', '3.7' ]
36+
steps:
37+
- name: Checkout to master
38+
uses: actions/checkout@master
39+
40+
- name: Setup Python-${{ matrix.python-version }}
41+
uses: actions/setup-python@v1
42+
with:
43+
python-version: ${{ matrix.python-version }}
44+
architecture: x64
45+
46+
- name: Setup Package
47+
run: |
48+
python setup.py check -r -s
49+
python -m pip install .
50+
51+
- name: Unit Tests
52+
run: |
53+
python -m pip install pytest
54+
py.test -v

.travis.yml

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

0 commit comments

Comments
 (0)