Skip to content

Commit 1c01323

Browse files
committed
[CI] Add build workflow
1 parent 71479b6 commit 1c01323

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-20.04
15+
strategy:
16+
matrix:
17+
include:
18+
- python-version: 3.7
19+
env: TOXENV=docs
20+
- python-version: 3.8
21+
env: TOXENV=flake8
22+
- python-version: 3.8
23+
env: TOXENV=pylint
24+
- python-version: 3.8
25+
env: TOXENV=security
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- name: Set up Python ${{ matrix.python-version }}
31+
uses: actions/setup-python@v2
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
35+
- name: Run check
36+
env: ${{ matrix.env }}
37+
run: |
38+
pip install --upgrade pip
39+
pip install --upgrade tox
40+
tox

0 commit comments

Comments
 (0)