Skip to content

Commit c806a49

Browse files
ci: Update linting.yml
1 parent ff5e19b commit c806a49

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

.github/workflows/linting.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Linting
22
on:
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 }}

0 commit comments

Comments
 (0)