Skip to content

Commit 8744135

Browse files
committed
update .github/
1 parent 2c121db commit 8744135

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,23 @@ jobs:
1919
with:
2020
python-version: "3.12.3"
2121

22+
- name: Cache pip
23+
uses: actions/cache@v3
24+
with:
25+
path: ~/.cache/pip
26+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
27+
restore-keys: |
28+
${{ runner.os }}-pip-
29+
2230
- name: Install dependencies
2331
run: |
2432
python -m pip install --upgrade pip
2533
pip install ruff
2634
27-
- name: Run Ruff linter
35+
- name: Auto-fix code with Ruff
2836
run: |
29-
ruff check . \
30-
--select ALL \
31-
--ignore F401,W391 \
32-
--line-length 88
37+
ruff format . --fix --line-length 88 --exclude migrations,venv || true
3338
34-
- name: Run Ruff formatter
39+
- name: Run Ruff linter
3540
run: |
36-
ruff format . \
37-
--line-length 88 \
38-
--exclude migrations,venv
41+
ruff check . --select ALL --ignore F401,W391 --line-length 88

0 commit comments

Comments
 (0)