Skip to content

Commit e0719c8

Browse files
author
Eric Liu
committed
use pre-built actions rather than install ruff.
1 parent 35a13ce commit e0719c8

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,16 @@ jobs:
1717
- name: Checkout Repo
1818
uses: actions/checkout@v4
1919

20-
# Add Python and Ruff linting steps
21-
- name: Set up Python
22-
uses: actions/setup-python@v4
23-
with:
24-
python-version: '3.11'
25-
26-
- name: Install Ruff
27-
run: pip install ruff>=0.12.5
28-
20+
# Ruff linting steps
2921
- name: Run Ruff linter
30-
working-directory: ./app
31-
run: ruff check .
32-
22+
uses: astral-sh/ruff-action@v1
23+
with:
24+
args: check ./app
25+
3326
- name: Run Ruff formatter check
34-
working-directory: ./app
35-
run: ruff format --check .
27+
uses: astral-sh/ruff-action@v1
28+
with:
29+
args: "format --check"
3630

3731
- name: Build Docker image
3832
working-directory: ./app

0 commit comments

Comments
 (0)