Skip to content

Commit 444155c

Browse files
committed
refactor(ci): separate markdown format from type check
1 parent 112ff0c commit 444155c

1 file changed

Lines changed: 24 additions & 5 deletions

File tree

.github/workflows/code-quality.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
version: latest
2828
args: format --check
2929
ty:
30-
name: Type Check & Markdown Format
30+
name: Type Check
3131
runs-on: ubuntu-latest
3232
needs: ruff
3333
steps:
@@ -45,11 +45,30 @@ jobs:
4545
run: |
4646
uv venv
4747
uv sync --group dev --group test
48-
- name: Check markdown formatting
49-
run: |
50-
source .venv/bin/activate
51-
mdformat --check .
5248
- name: Run ty
5349
run: |
5450
source .venv/bin/activate
5551
ty check
52+
mdformat:
53+
name: Markdown Format
54+
runs-on: ubuntu-latest
55+
needs: ruff
56+
steps:
57+
- uses: actions/checkout@v4
58+
- name: Set up Python
59+
uses: actions/setup-python@v5
60+
with:
61+
python-version-file: ".python-version"
62+
- name: Install uv
63+
uses: astral-sh/setup-uv@v5
64+
with:
65+
enable-cache: true
66+
cache-dependency-glob: "uv.lock"
67+
- name: Install dependencies
68+
run: |
69+
uv venv
70+
uv sync --group dev --group test
71+
- name: Check markdown formatting
72+
run: |
73+
source .venv/bin/activate
74+
mdformat --check .

0 commit comments

Comments
 (0)