-
-
Notifications
You must be signed in to change notification settings - Fork 10
73 lines (60 loc) · 1.72 KB
/
Copy pathready_linting.yml
File metadata and controls
73 lines (60 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: 'READY: Lint codebase'
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- main
- stable
jobs:
lint_flake8:
name: flake8
runs-on: 'ubuntu-latest'
concurrency:
group: ${{ github.workflow }}-flake8-${{ github.ref }}
cancel-in-progress: true
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Check out repo
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
with:
persist-credentials: false
- name: Install Python
uses: actions/setup-python@28f2168f4d98ee0445e3c6321f6e6616c83dd5ec
with:
python-version: '3.13'
cache: 'pip'
cache-dependency-path: requirements-flake8.txt
- name: Update pip
run: python -m pip install -U pip
- name: Install tox
run: python -m pip install -U tox
- name: Run flake8
run: tox -e flake8
lint_interrogate:
name: interrogate
runs-on: 'ubuntu-latest'
concurrency:
group: ${{ github.workflow }}-interrogate-${{ github.ref }}
cancel-in-progress: true
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Check out repo
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
with:
persist-credentials: false
- name: Install Python
uses: actions/setup-python@28f2168f4d98ee0445e3c6321f6e6616c83dd5ec
with:
python-version: '3.13'
cache: 'pip'
cache-dependency-path: requirements-interrogate.txt
- name: Update pip
run: python -m pip install -U pip
- name: Install tox
run: python -m pip install -U tox
- name: Run interrogate
run: tox -e interrogate