Skip to content

Commit aa910d1

Browse files
committed
authenticate for system tests
1 parent 7060510 commit aa910d1

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/experiment.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ jobs:
138138
echo "::error::Tests failed after 3 attempts. This is a hard failure."
139139
exit 1
140140
141+
# ==========================================
142+
# 5. SYSTEM TESTS
143+
# ==========================================
141144
# ==========================================
142145
# 5. SYSTEM TESTS
143146
# ==========================================
@@ -152,6 +155,13 @@ jobs:
152155
python: ["3.11"]
153156
steps:
154157
- uses: actions/checkout@v4
158+
- id: 'auth'
159+
name: 'Authenticate to Google Cloud'
160+
uses: 'google-github-actions/auth@v2'
161+
with:
162+
workload_identity_provider: ${{ secrets.WIF_PROVIDER }}
163+
service_account: ${{ secrets.WIF_SERVICE_ACCOUNT }}
164+
155165
- uses: astral-sh/setup-uv@v5
156166
with:
157167
python-version: ${{ matrix.python }}
@@ -161,10 +171,14 @@ jobs:
161171
- name: Execute System Tests
162172
env:
163173
RUN_SYSTEM_TESTS: "true"
174+
# ADDED: Inject the required environment variables for the tests
175+
PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} # Update to match your legacy YAML's secret name
164176
run: |
165177
cd ${{ matrix.package }}
166178
export NOX_DEFAULT_VENV_BACKEND=uv
167-
uvx --with 'nox[uv]' nox -s system
179+
180+
# FIXED: Append the exact matrix version to stop Nox from running all versions sequentially
181+
uvx --with 'nox[uv]' nox -s system-${{ matrix.python }}
168182
169183
# ==========================================
170184
# 6. THE GATEKEEPER (Status Check Rollup)

0 commit comments

Comments
 (0)