Skip to content

Commit a5a7545

Browse files
committed
fix: Run integ tests off new staging deployment
1 parent c07e4b5 commit a5a7545

1 file changed

Lines changed: 23 additions & 15 deletions

File tree

.github/workflows/pr.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -91,27 +91,27 @@ jobs:
9191
name: Test integration
9292
needs: docker-build # Only run if docker builds succeed
9393
runs-on: ubuntu-latest
94-
94+
9595
steps:
9696
- uses: actions/checkout@v4
97-
97+
9898
- name: Set up Python
9999
uses: actions/setup-python@v5
100100
with:
101101
python-version: '3.13'
102-
102+
103103
- name: Install uv
104104
uses: astral-sh/setup-uv@v3
105105
with:
106106
enable-cache: true
107-
107+
108108
- name: Set up Docker Buildx
109109
uses: docker/setup-buildx-action@v3
110-
110+
111111
- name: Generate API clients
112112
run: |
113113
./scripts/generate-clients.sh
114-
114+
115115
- name: Start services
116116
run: |
117117
docker compose -f deployment/docker-compose.yml up -d
@@ -126,22 +126,30 @@ jobs:
126126
echo "Waiting for services... (attempt $i/30)"
127127
sleep 2
128128
done
129-
130-
- name: Run integration tests
129+
130+
- name: Run integration tests (local services only)
131131
run: |
132132
cd projects/policyengine-apis-integ
133133
uv sync --extra test
134-
# Run tests that don't require GCP credentials
135-
# Modal staging tests run against deployed staging environment
136-
simulation_integ_test_base_url="https://policyengine-staging--policyengine-simulation-gateway-web-app.modal.run" \
137-
uv run pytest tests/ -v -m "not requires_gcp"
138-
134+
# Run tests against local Docker services only (not Modal staging)
135+
uv run pytest tests/ -v -m "not requires_gcp and not beta_only"
136+
139137
- name: Show service logs on failure
140138
if: failure()
141139
run: |
142140
docker compose -f deployment/docker-compose.yml logs
143-
141+
144142
- name: Stop services
145143
if: always()
146144
run: |
147-
docker compose -f deployment/docker-compose.yml down
145+
docker compose -f deployment/docker-compose.yml down
146+
147+
# Deploy to Modal staging and run Modal-specific integration tests
148+
test-modal-integration:
149+
name: Test Modal integration
150+
needs: docker-build
151+
uses: ./.github/workflows/modal-deploy.reusable.yml
152+
with:
153+
environment: beta
154+
modal_environment: staging
155+
secrets: inherit

0 commit comments

Comments
 (0)