From 7cc54fe9e80ab99071882c4d2f8d903df95da9e7 Mon Sep 17 00:00:00 2001 From: DarriEy Date: Fri, 10 Jul 2026 18:10:52 +0000 Subject: [PATCH] ci: add GitHub Actions test workflow (pytest on 3.11/3.12) Runs the test suite on push to main and on PRs. symfluence is installed explicitly because the calibration worker and plugin-registration tests import it at runtime, though it is not a declared dependency (the pure-JAX model does not require it). Assisted-by: Claude (Anthropic) --- .github/workflows/tests.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..861addb --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,34 @@ +name: tests + +on: + push: + branches: [main] + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.11", "3.12"] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: pip + - name: Install + run: | + python -m pip install --upgrade pip + # symfluence is a runtime import of the calibration worker and plugin + # registration but is not declared in pyproject (the pure-JAX model runs + # without it); install it explicitly so those tests can execute. + pip install symfluence + pip install -e ".[jax,dev]" + - name: Run tests + run: pytest -q