File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Linting
2+ on :
3+ push :
4+ branches : [main]
5+ pull_request :
6+ branches : [main]
7+
8+ jobs :
9+ lint :
10+ runs-on : ubuntu-latest
11+ strategy :
12+ matrix :
13+ python-version : ["3.12"]
14+ steps :
15+ - uses : actions/checkout@v2
16+
17+ - name : Set up Python ${{ matrix.python-version }}
18+ uses : actions/setup-python@v2
19+ with :
20+ python-version : ${{ matrix.python-version }}
21+
22+ - name : Cache pip
23+ uses : actions/cache@v3
24+ with :
25+ path : ~/.cache/pip
26+ key : ${{ runner.os }}-pip-${{ hashFiles('requirements/dev.txt') }}
27+ restore-keys : |
28+ ${{ runner.os }}-pip-
29+
30+ - name : Install dependencies
31+ run : |
32+ python -m pip install --upgrade pip
33+ pip install -r requirements/dev.txt
34+
35+ - name : Run linters
36+ run : |
37+ black . --check --verbose
38+ isort . --check --verbose
39+ flake8 . --count --show-source --statistics
You can’t perform that action at this time.
0 commit comments