Skip to content

ci: add CI workflow to run tests on all pushes and PRs #1

ci: add CI workflow to run tests on all pushes and PRs

ci: add CI workflow to run tests on all pushes and PRs #1

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
- name: Run tests
run: |
pip install -r requirements.txt
pip install pytest
if python -m pytest --collect-only -q >/dev/null 2>&1; then
pytest --tb=short
else
echo "No tests found, skipping"
fi