From 6d79b184b95645abe54a4e2b0e0f00061d53b9b6 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Thu, 16 Apr 2026 13:19:56 +0300 Subject: [PATCH] fix(MAT-273): add dummy env vars to CI so bot.py can be imported in tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test_needs_query_rewrite imports Bot from bot.py which reads MATRIX_HOMESERVER etc. at module level — KeyError in CI where those vars are not set. This has blocked all deploys since c2985488. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/deploy.yml | 7 +++++++ .gitea/workflows/test.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index ea4ab97..f3ef3da 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -19,6 +19,13 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt -r requirements-test.txt - name: Run tests + env: + MATRIX_HOMESERVER: https://test.local + MATRIX_BOT_USER: "@test:test.local" + MATRIX_BOT_PASSWORD: test + LIVEKIT_URL: wss://test.local + LIVEKIT_API_KEY: test + LIVEKIT_API_SECRET: test run: pytest tests/ -v --cov=device_trust --cov-report=term build-and-deploy: needs: [test] diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index a74c361..019116c 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -17,5 +17,12 @@ jobs: run: | pip install -r requirements.txt -r requirements-test.txt - name: Run tests + env: + MATRIX_HOMESERVER: https://test.local + MATRIX_BOT_USER: "@test:test.local" + MATRIX_BOT_PASSWORD: test + LIVEKIT_URL: wss://test.local + LIVEKIT_API_KEY: test + LIVEKIT_API_SECRET: test run: | pytest tests/ -v --cov=device_trust --cov-report=term