11name : Run Tests
22
33on :
4- - push
5- - pull_request
4+ push :
5+ branches : [ '*' ]
6+ pull_request :
7+ branches : [ master ]
68
79jobs :
8- build :
10+ lint :
911 runs-on : ${{ matrix.os }}
1012 strategy :
1113 matrix :
12- python-version : [3.6, 3.7, 3.8]
13- os : [ubuntu-latest, macos-10.15]
14+ python-version : [3.8]
15+ os : [ubuntu-latest, macos-latest, windows-latest]
16+ steps :
17+ - uses : actions/checkout@v1
18+ - name : Set up Python ${{ matrix.python-version }}
19+ uses : actions/setup-python@v2
20+ with :
21+ python-version : ${{ matrix.python-version }}
22+ - name : Install package
23+ run : pip install invoke .[dev]
24+ - name : invoke lint
25+ run : invoke lint
1426
27+
28+ docs :
29+ runs-on : ${{ matrix.os }}
30+ strategy :
31+ matrix :
32+ python-version : [3.6, 3.7, 3.8]
33+ os : [ubuntu-20.04]
1534 steps :
1635 - uses : actions/checkout@v1
1736 - name : Set up Python ${{ matrix.python-version }}
18- uses : actions/setup-python@v1
37+ uses : actions/setup-python@v2
1938 with :
2039 python-version : ${{ matrix.python-version }}
40+ - name : Install package
41+ run : pip install .[dev]
42+ - name : make docs
43+ run : make docs
44+
2145
22- - name : Install dependencies
23- run : |
24- python -m pip install --upgrade pip
25- pip install tox tox-gh-actions
46+ unit :
47+ runs-on : ${{ matrix.os }}
48+ strategy :
49+ matrix :
50+ python-version : [3.6, 3.7, 3.8]
51+ os : [ubuntu-20.04, macos-latest, windows-latest]
52+ steps :
53+ - uses : actions/checkout@v1
54+ - name : Set up Python ${{ matrix.python-version }}
55+ uses : actions/setup-python@v2
56+ with :
57+ python-version : ${{ matrix.python-version }}
58+ - name : Install package and dependencies
59+ run : pip install invoke .[test]
60+ - name : invoke pytest
61+ run : invoke pytest
2662
27- - name : Check Environment
28- run : |
29- python -m pip check
3063
31- - name : Test with tox
32- run : tox
64+ minimum :
65+ runs-on : ${{ matrix.os }}
66+ strategy :
67+ matrix :
68+ python-version : [3.6, 3.7, 3.8]
69+ os : [ubuntu-20.04, macos-latest]
70+ steps :
71+ - uses : actions/checkout@v1
72+ - name : Set up Python ${{ matrix.python-version }}
73+ uses : actions/setup-python@v2
74+ with :
75+ python-version : ${{ matrix.python-version }}
76+ - name : Install package and dependencies
77+ run : pip install invoke .[test]
78+ - name : invoke minimum
79+ run : invoke minimum
0 commit comments