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