Skip to content

Commit 6bf5bbd

Browse files
committed
ci: add Python + engine type-check workflow
1 parent cdc67af commit 6bf5bbd

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
python:
11+
name: Python shim tests
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.11"
19+
- name: Install package + dev deps
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -e ".[dev]"
23+
- name: Run pytest
24+
run: pytest -v
25+
26+
engine-typecheck:
27+
name: Engine type-check
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- name: Set up Node
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: "22"
35+
- name: Install engine deps
36+
working-directory: engine
37+
run: npm ci
38+
- name: Type-check
39+
working-directory: engine
40+
run: |
41+
if [ -f tsconfig.json ]; then
42+
npx tsc --noEmit
43+
else
44+
echo "No tsconfig.json; skipping type-check."
45+
fi

0 commit comments

Comments
 (0)