Skip to content

Commit 2605fac

Browse files
committed
ci: implementing code quality analysis CI
1 parent a50e7ee commit 2605fac

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
paths-ignore:
7+
- '**.md'
8+
- 'docs/**'
9+
- 'README*'
10+
- '.gitignore'
11+
pull_request:
12+
branches: [ main, develop ]
13+
paths-ignore:
14+
- '**.md'
15+
- 'docs/**'
16+
- 'README*'
17+
- '.gitignore'
18+
workflow_dispatch:
19+
20+
jobs:
21+
code-analysis:
22+
name: Code Quality Analysis
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Checkout Repository
27+
uses: actions/checkout@v4
28+
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v5
31+
with:
32+
version: "latest"
33+
34+
- name: Install Python
35+
run: uv python install
36+
37+
- name: Install dependencies
38+
run: uv sync --locked --all-extras --dev
39+
40+
- name: Check formatting
41+
run: uv run ruff format --check .
42+
43+
- name: Check linting
44+
run: uv run ruff check .

0 commit comments

Comments
 (0)