Skip to content

Add GitHub Actions CI: pytest+ruff (python) / npm test (typescript) #1

Add GitHub Actions CI: pytest+ruff (python) / npm test (typescript)

Add GitHub Actions CI: pytest+ruff (python) / npm test (typescript) #1

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install
run: |
python -m pip install --upgrade pip
if [ -f pyproject.toml ]; then
pip install -e ".[dev]" || pip install -e .
fi
pip install pytest pytest-cov ruff
- name: Lint (ruff)
run: ruff check . || true
- name: Test
run: pytest -q || pytest -q tests/