Skip to content

Commit 1a33006

Browse files
authored
Merge pull request #33 from sintel-dev/tests
Expand GH action tests
2 parents 76293ce + 26ae9ab commit 1a33006

File tree

2 files changed

+67
-15
lines changed

2 files changed

+67
-15
lines changed

.github/workflows/tests.yml

Lines changed: 65 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,82 @@
11
name: Run Tests
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches: [ '*' ]
6+
pull_request:
7+
branches: [ master ]
68

79
jobs:
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

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
'Sphinx>=1.7.1,<3',
4141
'sphinx_rtd_theme>=0.2.4,<0.5',
4242
'autodocsumm>=0.1.10',
43+
'markupsafe<2.1.0',
44+
'Jinja2>=2,<3',
4345

4446
# style check
4547
'flake8>=3.7.7,<4',

0 commit comments

Comments
 (0)