-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (36 loc) · 906 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
name: Lint
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out with submodules
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: Cache mypy_cache
uses: actions/cache@v3
with:
path: .mypy_cache
key: mypy_cache-${{ hashFiles('pyproject.toml') }}
restore-keys: mypy_cache-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[lint]
bash ./benchmark/install_submodule.sh all
- name: Run linters
run: |
./scripts/lint.sh --verbose