Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,42 @@ jobs:
OPENAI_API_KEY: ""
NOUS_API_KEY: ""

integration:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y ripgrep

- name: Install uv
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5

- name: Set up Python 3.11
run: uv python install 3.11

- name: Install dependencies
run: |
uv venv .venv --python 3.11
source .venv/bin/activate
uv pip install -e ".[all,dev]"

- name: Run integration tests
# Override the default `-m 'not integration'` from
# pyproject.toml addopts so the integration-marked tests
# actually execute. Pass through repository secrets when
# configured; tests that require live API keys must skip
# gracefully when the corresponding env var is empty.
run: |
source .venv/bin/activate
python -m pytest tests/integration -v --tb=short -o addopts= -m integration
env:
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
NOUS_API_KEY: ${{ secrets.NOUS_API_KEY }}

Comment on lines +78 to +91
e2e:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down