Skip to content

Commit 829cad6

Browse files
committed
Add initial GitHub Actions CI/CD linters workflow
1 parent f39983c commit 829cad6

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
python-version:
21+
- 3.7
22+
env:
23+
- TOXENV: fix_lint
24+
- TOXENV: docs
25+
- TOXENV: dev
26+
- TOXENV: package_description
27+
steps:
28+
- uses: actions/checkout@master
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v1
31+
with:
32+
version: ${{ matrix.python-version }}
33+
- name: Install tox
34+
run: |
35+
python -m pip install --upgrade tox
36+
- name: 'Initialize tox envs: ${{ matrix.env.TOXENV }}'
37+
run: >-
38+
python
39+
-m tox
40+
--notest
41+
--skip-missing-interpreters false
42+
env: ${{ matrix.env }}
43+
- name: Test with tox
44+
run: >-
45+
python -m tox
46+
env: ${{ matrix.env }}

0 commit comments

Comments
 (0)