Skip to content

Commit 2cc5758

Browse files
authored
Added pre-production validation tests GitHub Actions workflow (#248)
1 parent 388d297 commit 2cc5758

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run Pre-Production Validation Tests
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
eval_function:
7+
type: string
8+
description: "The name of the evaluation function to test"
9+
required: true
10+
sql_limit:
11+
type: number
12+
description: "The maximum number of SQL test cases to run"
13+
required: false
14+
default: 500
15+
16+
jobs:
17+
run-pre-production-tests:
18+
name: 🧪 Run Staging Validation Tests
19+
uses: lambda-feedback/Database-Testing/.github/workflows/test_evaluation_function.yml@main
20+
with:
21+
eval_function: ${{ inputs.eval_function }}
22+
sql_limit: ${{ inputs.sql_limit }}
23+
secrets:
24+
TEST_API_ENDPOINT: ${{ secrets.TEST_API_ENDPOINT }}
25+
DB_USER: ${{ secrets.DB_USER }}
26+
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
27+
DB_HOST: ${{ secrets.DB_HOST }}
28+
DB_PORT: ${{ secrets.DB_PORT }}
29+
DB_NAME: ${{ secrets.DB_NAME }}
30+
GCP_SERVICE_ACCOUNT_KEY: ${{ secrets.GCP_DB_CREDS }}
31+
GCP_PROJECT_ID: ${{ secrets.GCP_DB_PROJECT_ID }}

0 commit comments

Comments
 (0)