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+ - if : matrix.os == 'windows-latest' && matrix.python-version == 3.6
59+ name : Install dependencies - Windows with Python 3.6
60+ run : python -m pip install pywinpty==2.0.1
61+ - name : Install package and dependencies
62+ run : pip install invoke .[test]
63+ - name : invoke pytest
64+ run : invoke pytest
2665
27- - name : Check Environment
28- run : |
29- python -m pip check
3066
31- - name : Test with tox
32- run : tox
67+ minimum :
68+ runs-on : ${{ matrix.os }}
69+ strategy :
70+ matrix :
71+ python-version : [3.6, 3.7, 3.8]
72+ os : [ubuntu-20.04, macos-latest]
73+ steps :
74+ - uses : actions/checkout@v1
75+ - name : Set up Python ${{ matrix.python-version }}
76+ uses : actions/setup-python@v2
77+ with :
78+ python-version : ${{ matrix.python-version }}
79+ - name : Install package and dependencies
80+ run : pip install invoke .[test]
81+ - name : invoke minimum
82+ run : invoke minimum
0 commit comments