Refactor Agent Orchestrator #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: WorkSynapse CI | |
| on: | |
| push: | |
| branches: [ "main", "develop" ] | |
| pull_request: | |
| branches: [ "main", "develop" ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| PROJECT_NAME: "WorkSynapse API Test" | |
| API_V1_STR: "/api/v1" | |
| SECRET_KEY: "test_secret_key_for_ci_pipeline_only" | |
| SERVICE_API_KEY: "test_service_key" | |
| POSTGRES_USER: "test" | |
| POSTGRES_PASSWORD: "test" | |
| POSTGRES_DB: "test_db" | |
| POSTGRES_HOST: "localhost" | |
| POSTGRES_PORT: 5432 | |
| DATABASE_URL: "sqlite+aiosqlite:///:memory:" | |
| PYTHONPATH: ${{ github.workspace }}/backend | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest pytest-asyncio pytest-cov httpx faker aiosqlite sqlalchemy | |
| pip install -r backend/requirements.txt | |
| - name: Run Tests | |
| run: | | |
| cd backend | |
| pytest tests/ --cov=app --cov-report=xml | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |