From e8c26ef8bafdbc00d6b76c67412fbd132fe1a016 Mon Sep 17 00:00:00 2001 From: Ilyaas Yusuf Kapadia <86218345+IlyaasK@users.noreply.github.com> Date: Sun, 24 May 2026 17:23:22 -0400 Subject: [PATCH] Add CI workflow --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..60c9175 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + pull_request: + push: + branches: + - main + +permissions: + contents: read + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + python: + name: Python checks + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Check Python syntax + run: python -m compileall -q src + + - name: Run unit tests if present + run: | + if [ -d tests ]; then + python -m unittest discover -s tests + else + echo "no tests directory yet" + fi