From 82fab7c3eae2be026edc79c9e5f0bda32a3bac5f Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 9 Nov 2026 13:48:28 +0100 Subject: [PATCH 1/2] adding eval github action --- .github/workflows/eval.yml | 55 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/eval.yml diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml new file mode 100644 index 0000000..77035cb --- /dev/null +++ b/.github/workflows/eval.yml @@ -0,0 +1,55 @@ +name: eval-gate + +on: + pull_request: + paths: + - "rigging/**" + - "examples/**" + - "tests/**" + - "pyproject.toml" + - "Makefile" + push: + branches: [main] + paths: + - "rigging/**" + - "examples/**" + - "tests/**" + - "pyproject.toml" + - "Makefile" + +env: + RIGGING_PROFILE_OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} + +jobs: + eval: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install + run: make install + + - name: Seed demo DB + run: make seed + + - name: Eval suite + run: make eval + + - name: Unit tests + run: pytest -x -q + + - name: Upload eval results + if: always() + uses: actions/upload-artifact@v4 + with: + name: eval-results-${{ github.run_id }} + path: results/ + if-no-files-found: ignore \ No newline at end of file From 897e43d8bcff5acfcfea72e76f345b8906ed6bc9 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 9 Nov 2026 13:54:14 +0100 Subject: [PATCH 2/2] restricted permissions on eval.yml --- .github/workflows/eval.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml index 77035cb..3912817 100644 --- a/.github/workflows/eval.yml +++ b/.github/workflows/eval.yml @@ -1,4 +1,7 @@ name: eval-gate +permissions: + contents: read + pull-requests: write on: pull_request: @@ -52,4 +55,4 @@ jobs: with: name: eval-results-${{ github.run_id }} path: results/ - if-no-files-found: ignore \ No newline at end of file + if-no-files-found: ignore