Skip to content

Commit c63c5db

Browse files
committed
Parallel code quality
1 parent c36fce0 commit c63c5db

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

.github/workflows/code-quality.yml

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
- main
88

99
jobs:
10-
code-quality:
11-
name: Code Quality
10+
static-analysis:
11+
name: Static Analysis
1212
if: github.actor != 'dependabot[bot]'
1313
runs-on: ubuntu-latest
1414
permissions:
@@ -21,34 +21,42 @@ jobs:
2121
ref: ${{ github.head_ref }}
2222
token: ${{ secrets.WORKFLOW_COMMIT }}
2323

24-
- name: 🐍 Setup Python
25-
uses: actions/setup-python@v5
26-
with:
27-
python-version: "3.13"
28-
cache: "pip"
29-
3024
- name: 📦 Install Hatch
3125
uses: pypa/hatch@install
3226

3327
- name: 📝 Format Code
34-
run: hatch fmt -f
28+
run: hatch fmt
3529

3630
- name: ✅ Commit Code Format Changes
3731
uses: stefanzweifel/git-auto-commit-action@v5
3832
with:
39-
commit_message: "Format code"
33+
commit_message: "Hatch static analysis"
4034
skip_fetch: true
4135
skip_checkout: true
4236

43-
- name: 🧶 Lint
44-
run: hatch fmt --check
37+
- name: 🔍 Type Check
38+
run: hatch run check
39+
40+
type-check:
41+
name: Type Check
42+
if: github.actor != 'dependabot[bot]'
43+
runs-on: ubuntu-latest
4544

46-
- name: ✅ Commit Code Linting Changes
47-
uses: stefanzweifel/git-auto-commit-action@v5
45+
steps:
46+
- name: 🛎 Checkout
47+
uses: actions/checkout@v4
4848
with:
49-
commit_message: "Lint code"
50-
skip_fetch: true
51-
skip_checkout: true
49+
ref: ${{ github.head_ref }}
50+
token: ${{ secrets.WORKFLOW_COMMIT }}
51+
52+
- name: 🐍 Setup Python
53+
uses: actions/setup-python@v5
54+
with:
55+
python-version: "3.13"
56+
cache: "pip"
57+
58+
- name: 📦 Install Hatch
59+
uses: pypa/hatch@install
5260

5361
- name: 🔍 Type Check
54-
run: hatch run check
62+
run: hatch run check

0 commit comments

Comments
 (0)