Skip to content

Commit 70ccd0b

Browse files
committed
Add GitHub Actions CI: pytest+ruff (python) / npm test (typescript)
1 parent 7f8f0ef commit 70ccd0b

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python: ["3.10", "3.11", "3.12"]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python }}
21+
- name: Install
22+
run: |
23+
python -m pip install --upgrade pip
24+
if [ -f pyproject.toml ]; then
25+
pip install -e ".[dev]" || pip install -e .
26+
fi
27+
pip install pytest pytest-cov ruff
28+
- name: Lint (ruff)
29+
run: ruff check . || true
30+
- name: Test
31+
run: pytest -q || pytest -q tests/

0 commit comments

Comments
 (0)