Skip to content

Commit d456bf5

Browse files
committed
updated github actions for uv
1 parent 52b0f8e commit d456bf5

1 file changed

Lines changed: 15 additions & 22 deletions

File tree

.github/workflows/ci-backend.yml

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,23 @@ on:
99

1010
jobs:
1111
lint:
12-
name: Run Flake8
12+
name: Run linting
1313
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: server
1417
steps:
15-
- uses: actions/checkout@v4
18+
- name: Checkout
19+
uses: actions/checkout@v5
1620

17-
- name: "Set up Python"
18-
uses: actions/setup-python@v5
19-
with:
20-
python-version: 3.12
21+
- name: get ruff
22+
uses: astral-sh/ruff-action@v3
2123

22-
- name: "Install flake8 and plugins"
23-
run: |
24-
pip install flake8 flake8-django
24+
- name: ruff check
25+
run: ruff check
2526

26-
- name: "Run flake8"
27-
uses: liskin/gh-problem-matcher-wrap@v1
28-
with:
29-
linters: flake8
30-
run: flake8 --max-line-length 150 server/
27+
- name: ruff format check
28+
run: ruff format --check
3129

3230
build:
3331
name: Build and test
@@ -50,18 +48,13 @@ jobs:
5048

5149
steps:
5250
- name: Checkout
53-
uses: actions/checkout@v4
54-
55-
- name: Set up Python
56-
uses: actions/setup-python@v5
57-
with:
58-
python-version: "3.12"
51+
uses: actions/checkout@v5
5952

6053
- name: Install uv
61-
run: pip install uv
54+
uses: astral-sh/setup-uv@v6
6255

6356
- name: Install dependencies 👨🏻‍💻
64-
run: uv sync --frozen
57+
run: uv sync --frozen --all-groups
6558

6659
- name: Run Migrations 🕊️
6760
env:

0 commit comments

Comments
 (0)