Skip to content

Commit ee05968

Browse files
feat(ci): add type check
1 parent 1fd646a commit ee05968

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/ci.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: ruff checks
1+
name: CI
22

3-
on: ["push", "pull_request"]
3+
on: ["push", "pull_request", "workflow_dispatch"]
44

55
jobs:
6-
ruff:
6+
check:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
@@ -21,8 +21,11 @@ jobs:
2121
- name: Ruff lint check
2222
run: |
2323
ruff check --output-format=github
24+
- name: Pyright type check
25+
run: |
26+
npx pyright
2427
publish:
25-
needs: ruff
28+
needs: check
2629
runs-on: ubuntu-latest
2730
permissions:
2831
id-token: write

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build-backend = "pdm.backend"
1616
distribution = true
1717

1818
[tool.pdm.dev-dependencies]
19-
dev = ["pyodide-py~=0.25.0", "ruff~=0.3.0", "openai~=1.13.3"]
19+
dev = ["pyodide-py>=0.25.0", "ruff~=0.3.0", "openai~=1.13.3"]
2020

2121
[tool.pdm.scripts]
2222
fmt = "ruff format"

0 commit comments

Comments
 (0)