File tree Expand file tree Collapse file tree 2 files changed +54
-23
lines changed
Expand file tree Collapse file tree 2 files changed +54
-23
lines changed Original file line number Diff line number Diff line change 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments