Skip to content

Commit 5fa906b

Browse files
authored
Merge pull request #6952 from webknjaz/features/integrate-github-actions-ci-cd--linters
Add initial GH actions linter workflow
2 parents 83bb1d0 + 61ff014 commit 5fa906b

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/python-linters.yml

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+
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 }}

news/6952-gh-actions--linters.trivial

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add a GitHub Actions workflow running all linters.

0 commit comments

Comments
 (0)