From 7dde419e68ea3d3dba1b318955e64df0ff79abb3 Mon Sep 17 00:00:00 2001 From: djl11 Date: Wed, 5 Aug 2026 18:33:51 +0100 Subject: [PATCH 1/2] Let the docs example tests reach an install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pyproject depends on unify as a sibling path, matching the local layout, so poetry install has failed in CI since the job was written — every run has reported failure before reading a single example. The adjacent black job was given a workaround for the same cause in July; this one was left. Check both repos out side by side and run from the docs one. The suite executes every python and shell block in every .mdx against the live API, so it is metered work: it now runs on the release pull request and on demand rather than on every push, where the examples are usually untouched and the bill would not be. black keeps its push trigger, and stays the required check it already was. Poetry is installed directly: knowsuchagency/poetry-install takes no working-directory, which the two-checkout layout needs, and still runs on node12. --- .github/workflows/tests.yml | 43 ++++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e83705b78..5157d33c9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,13 @@ name: Testing Code Examples -on: push +on: + push: + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read jobs: @@ -19,21 +26,51 @@ jobs: - name: Run black check run: black --check . + # Executes every python and shell block in every .mdx against the live API, + # so it is metered work rather than a unit suite: it runs on the release pull + # request, where broken documentation is still worth catching before it + # reaches readers, and on demand. Not on every push — the examples do not + # change on most of them, and the bill would. pytest: + if: github.event_name != 'push' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + # ``pyproject.toml`` depends on unify as a sibling path + # (``unifyai = {path = "../unify"}``), matching the local layout, so both + # repos are checked out side by side and the job runs from the docs one. + # Without this the install fails before a single example is read, which is + # how this job came to report failure on every run since it was written. + - name: Check out docs + uses: actions/checkout@v4 + with: + path: docs + + - name: Check out unify + uses: actions/checkout@v4 + with: + repository: unifyai/unify + ref: main + path: unify + - name: Setup Python uses: actions/setup-python@v5 with: python-version: "3.12" + # Installed directly rather than through knowsuchagency/poetry-install: + # that action takes no working-directory, which this two-checkout layout + # needs, and still runs on node12. + - name: Install Poetry + run: pipx install poetry + - name: Install Dependencies - uses: knowsuchagency/poetry-install@v1 + working-directory: docs + run: poetry install env: POETRY_VIRTUALENVS_CREATE: false - name: Run Tests + working-directory: docs run: poetry run pytest -vv --cov="docs" -n 4 . env: UNIFY_KEY: ${{ secrets.UNIFY_API_KEY }} From 5a9d5006699404bb0a8f5d61300eb7ae7fef5708 Mon Sep 17 00:00:00 2001 From: djl11 Date: Sun, 9 Aug 2026 23:02:30 -0300 Subject: [PATCH 2/2] Regenerate AGENTS.md after magnitude main branch cutover. Co-authored-by: Cursor --- .agents/global-rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.agents/global-rules b/.agents/global-rules index f2fb04b5e..0db85e248 160000 --- a/.agents/global-rules +++ b/.agents/global-rules @@ -1 +1 @@ -Subproject commit f2fb04b5e22f13658d0bcfecdada8c02bfa0909e +Subproject commit 0db85e24816fc4cab5316a8827c8dbfbb4628de2