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 11name : Linting
22on :
33 push :
4- branches : [main, develop]
4+ branches : [main, develop, ci ]
55 pull_request :
66 branches : [main, develop]
77 workflow_dispatch :
@@ -13,28 +13,15 @@ jobs:
1313 matrix :
1414 python-version : ["3.12"]
1515 steps :
16- - uses : actions/checkout@v2
16+ - name : Checkout repository
17+ uses : actions/checkout@v3
1718
1819 - name : Set up Python ${{ matrix.python-version }}
19- uses : actions/setup-python@v2
20+ uses : actions/setup-python@v4
2021 with :
2122 python-version : ${{ matrix.python-version }}
2223
23- - name : Cache pip
24- uses : actions/cache @v3
24+ - name : Run Ruff via Action
25+ uses : astral-sh/ruff-action @v3.2.2
2526 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