Skip to content

feat: Git worktree isolation for agent tasks (Issue #8) (#14) #17

feat: Git worktree isolation for agent tasks (Issue #8) (#14)

feat: Git worktree isolation for agent tasks (Issue #8) (#14) #17

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov
pip install -r requirements.txt
pip install -e .
- name: Run tests
run: |
pytest tests/ -v --tb=short --cov=squadron --cov-report=xml
env:
# Mock environment variables for testing
GEMINI_API_KEY: test-key
JIRA_SERVER: https://test.atlassian.net
JIRA_EMAIL: [email protected]
JIRA_TOKEN: test-token
- name: Upload coverage
uses: codecov/codecov-action@v4
if: matrix.python-version == '3.11'
with:
files: coverage.xml
fail_ci_if_error: false