Skip to content

Commit 3a844c6

Browse files
committed
fix: workflows
1 parent 48878c1 commit 3a844c6

File tree

3 files changed

+37
-49
lines changed

3 files changed

+37
-49
lines changed
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pyright
1+
name: Format
22

33
on:
44
push:
@@ -7,14 +7,21 @@ on:
77
branches: [main]
88

99
jobs:
10-
type-check:
10+
ruff:
1111
runs-on: ubuntu-latest
1212

1313
strategy:
1414
matrix:
1515
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1616

1717
steps:
18-
- uses: jakebailey/pyright-action@v2
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Python ${{ matrix.python-version }} with uv
22+
uses: ./.github/actions/setup-python-with-uv
1923
with:
2024
python-version: ${{ matrix.python-version }}
25+
26+
- name: Format by Ruff
27+
run: uv run nox -s fmt

.github/workflows/lint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lint by Pyright and Ruff
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Python ${{ matrix.python-version }} with uv
22+
uses: ./.github/actions/setup-python-with-uv
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Lint by Pyright and Ruff
27+
run: uv run nox -s lint

.github/workflows/ruff.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)