Skip to content

Commit 4360c9a

Browse files
committed
Run lint etc in GitHub Actions
1 parent 5702989 commit 4360c9a

File tree

2 files changed

+68
-3
lines changed

2 files changed

+68
-3
lines changed

.github/workflows/kit.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ jobs:
1919
fail-fast: false
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- name: Check out the repo
23+
uses: actions/checkout@v2
2324

24-
- uses: actions/setup-python@v2
25-
name: Install Python
25+
- name: Install Python
26+
uses: actions/setup-python@v2
2627
with:
2728
python-version: "3.7"
2829

.github/workflows/quality.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2+
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
3+
4+
name: "Quality checks"
5+
6+
on:
7+
push:
8+
branches: ["master"]
9+
pull_request:
10+
branches: ["master"]
11+
workflow_dispatch:
12+
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
jobs:
18+
lint:
19+
name: Pylint etc
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: "Check out the repo"
24+
uses: "actions/checkout@v2"
25+
26+
- name: "Install Python"
27+
uses: "actions/setup-python@v2"
28+
with:
29+
python-version: "3.8"
30+
31+
- name: "Install dependencies"
32+
run: |
33+
set -xe
34+
python -VV
35+
python -m site
36+
python -m pip install -r requirements/tox.pip
37+
38+
- name: "Tox lint"
39+
run: |
40+
python -m tox -e lint
41+
42+
doc:
43+
name: Build docs
44+
runs-on: ubuntu-latest
45+
46+
steps:
47+
- name: "Check out the repo"
48+
uses: "actions/checkout@v2"
49+
50+
- name: "Install Python"
51+
uses: "actions/setup-python@v2"
52+
with:
53+
python-version: "3.8"
54+
55+
- name: "Install dependencies"
56+
run: |
57+
set -xe
58+
python -VV
59+
python -m site
60+
python -m pip install -r requirements/tox.pip
61+
62+
- name: "Tox doc"
63+
run: |
64+
python -m tox -e doc

0 commit comments

Comments
 (0)