FEAT: PAAL-151 Add Testworkflows #25
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: Test Testworkflows | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test-testworkflows: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: testworkflows | |
| steps: | |
| - name: Checkout | |
| uses: 'actions/checkout@v5' | |
| - name: Install uv | |
| uses: 'astral-sh/setup-uv@v6' | |
| with: | |
| version: "0.8.17" | |
| enable-cache: true | |
| - name: Set up Python | |
| uses: 'actions/setup-python@v6' | |
| with: | |
| python-version-file: "testworkflows/.python-version" | |
| - name: Install Dependencies | |
| run: uv sync --all-packages | |
| - name: Set up Kubernetes (kind) | |
| uses: 'helm/kind-action@v1' | |
| with: | |
| cluster_name: testbench-cluster | |
| - name: Install Tilt | |
| run: | | |
| curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/master/scripts/install.sh | bash | |
| tilt version | |
| - name: Start Tiltfile services | |
| run: tilt ci | |
| working-directory: . | |
| - name: Wait for services to be ready | |
| run: | | |
| echo "Waiting for services to be ready..." | |
| kubectl wait --for=condition=ready pod -l app=weather-agent --timeout=300s || true | |
| kubectl wait --for=condition=ready pod -l app=ai-gateway-litellm --timeout=300s || true | |
| kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=lgtm --timeout=300s || true | |
| echo "Checking service status..." | |
| kubectl get pods -A | |
| - name: Run pytest | |
| run: uv run pytest tests/ -v |