-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (33 loc) · 909 Bytes
/
lint.yml
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
---
name: lint
"on":
push: {}
permissions:
contents: read
jobs:
lint:
runs-on: [ubuntu-latest]
env:
SKIP_VENV: 1
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Fetch master (for incremental diff, lint filter mask)
run: git fetch origin master
- name: Reload Cache / pip
uses: actions/setup-python@v4
with:
python-version: 3
cache: "pip" # caching pip dependencies
cache-dependency-path: "**/requirements*.txt"
update-environment: false
- name: Install requirements
run: |
pip install -r requirements.txt
pip install -r requirements-lint.txt
# NOTE: pytest is needed to lint the folder: "tests/"
pip install -r requirements-test.txt
- name: Lint
run: make lint