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 <noreply@anthropic.com>
29 lines
762 B
YAML
29 lines
762 B
YAML
name: Tests
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths-ignore: ['**.md', 'docs/**']
|
|
pull_request:
|
|
branches: [main]
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- 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
|