Skip to content

Commit 39ee7cf

Browse files
committed
👷 ci: add fmt and lint
1 parent 163bc46 commit 39ee7cf

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/lint-and-fmt.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Lint and Format
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
merge_group:
8+
workflow_dispatch:
9+
10+
jobs:
11+
lint-and-fmt-python:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ["3.9"]
16+
architecture: ["x64"]
17+
name: Lint and Format (Python)
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v5
24+
25+
- name: Install python
26+
uses: actions/setup-python@v5
27+
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
architecture: ${{ matrix.architecture }}
31+
32+
- name: Install dependencies
33+
run: |
34+
uv sync --all-extras --dev
35+
36+
- uses: pre-commit/action@v3.0.1

0 commit comments

Comments
 (0)