Skip to content

Commit 4059862

Browse files
committed
Update checks actions workflow
1 parent e945c2a commit 4059862

File tree

1 file changed

+30
-33
lines changed

1 file changed

+30
-33
lines changed

.github/workflows/run-checks.yml

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,33 @@
11
name: Run checks
2+
23
on: [push, pull_request]
4+
35
jobs:
4-
tox:
5-
runs-on: ubuntu-latest
6-
strategy:
7-
matrix:
8-
environment:
9-
# Run tests with Python 3.6
10-
- "py36"
11-
# Run tests with Python 3.7
12-
- "py37"
13-
# Run code checks
14-
- "flake8"
15-
# Run static type checker
16-
- "mypy"
17-
include:
18-
- environment: "py36"
19-
python: "3.6"
20-
- environment: "py37"
21-
python: "3.7"
22-
- environment: "flake8"
23-
python: "3.7"
24-
- environment: "mypy"
25-
python: "3.7"
26-
container:
27-
image: python:${{ matrix.python }}
28-
steps:
29-
- uses: actions/checkout@master
30-
- name: Install tox
31-
run: |
32-
python -m pip install --upgrade pip
33-
pip install tox
34-
- name: Run tox
35-
run: |
36-
tox -e ${{ matrix.environment }}
6+
tox:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
environment: ["py36", "py37", "flake8", "mypy"]
11+
12+
include:
13+
- environment: "py36"
14+
python: "3.6"
15+
- environment: "py37"
16+
python: "3.7"
17+
- environment: "flake8"
18+
python: "3.7"
19+
- environment: "mypy"
20+
python: "3.7"
21+
22+
container:
23+
image: python:${{ matrix.python }}
24+
25+
steps:
26+
- uses: actions/checkout@master
27+
- name: Install tox
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install tox
31+
- name: Run tox
32+
run: |
33+
tox -e ${{ matrix.environment }}

0 commit comments

Comments
 (0)