Files

29 lines
797 B
YAML

name: Regression tests
on:
push:
branches: [develop, main]
pull_request:
branches: [develop, main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Run Python unit tests
run: python -B -m unittest discover -s tests -v
- name: Check Python syntax
run: python -B -c "import ast, pathlib; [ast.parse(pathlib.Path(p).read_text(encoding='utf-8')) for p in ('suite_nodes.py', '__init__.py', 'tests/test_suite_nodes.py')]"
- name: Check JavaScript syntax
run: node --check web/checkpoint_handpicker_suite.js