File tree 2 files changed +47
-0
lines changed
2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Code quality
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ schedule :
7
+ # Run every Friday at 18:02 UTC
8
+ # https://crontab.guru/#2_18_*_*_5
9
+ - cron : 2 18 * * 5
10
+
11
+ jobs :
12
+ linters :
13
+ name : 🤖
14
+ runs-on : ${{ matrix.os }}
15
+ strategy :
16
+ # max-parallel: 5
17
+ matrix :
18
+ os :
19
+ - ubuntu-18.04
20
+ env :
21
+ - TOXENV : docs
22
+ - TOXENV : lint
23
+ - TOXENV : lint-py2
24
+ PYTHON_VERSION : 2.7
25
+ - TOXENV : mypy
26
+ - TOXENV : packaging
27
+ steps :
28
+ - uses : actions/checkout@master
29
+ - name : Set up Python ${{ matrix.env.PYTHON_VERSION || 3.7 }}
30
+ uses : actions/setup-python@v1
31
+ with :
32
+ version : ${{ matrix.env.PYTHON_VERSION || 3.7 }}
33
+ - name : Pre-configure global Git settings
34
+ run : >-
35
+ tools/travis/setup.sh
36
+ - name : Update setuptools and tox dependencies
37
+ run : >-
38
+ tools/travis/install.sh
39
+ - name : ' Initialize tox envs: ${{ matrix.env.TOXENV }}'
40
+ run : >-
41
+ python -m tox --notest --skip-missing-interpreters false
42
+ env : ${{ matrix.env }}
43
+ - name : Test with tox
44
+ run : >-
45
+ python -m tox
46
+ env : ${{ matrix.env }}
Original file line number Diff line number Diff line change
1
+ Add a GitHub Actions workflow running all linters.
You can’t perform that action at this time.
0 commit comments