-
Notifications
You must be signed in to change notification settings - Fork 4.6k
43 lines (36 loc) · 1.05 KB
/
py_autofix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: autofix.ci
on:
pull_request:
paths:
- "**/*.py"
env:
POETRY_VERSION: "1.8.2"
jobs:
lint:
name: Run Ruff Check and Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
- run: uv run ruff check --fix-only .
- run: uv run ruff format .
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
- name: Minimize uv cache
run: uv cache prune --ci
update-starter-projects:
name: Update Starter Projects
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
- name: "Install dependencies"
run: |
uv sync --frozen
uv pip install -e .
- name: Run starter projects update
run: uv run python scripts/ci/update_starter_projects.py
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
- name: Minimize uv cache
run: uv cache prune --ci