File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -236,11 +236,18 @@ jobs:
236236
237237 common-tests :
238238 runs-on : ubuntu-latest
239+ environment : azure-prod
239240 needs : discover-tests
240241 if : ${{ needs.discover-tests.outputs.common-test-files != '[]' }}
241242 strategy :
242243 matrix :
243244 test_file : ${{ fromJson(needs.discover-tests.outputs.common-test-files) }}
245+ env :
246+ DATABRICKS_SERVER_HOSTNAME : ${{ secrets.DATABRICKS_HOST }}
247+ DATABRICKS_HTTP_PATH : ${{ secrets.TEST_PECO_WAREHOUSE_HTTP_PATH }}
248+ DATABRICKS_TOKEN : ${{ secrets.DATABRICKS_TOKEN }}
249+ DATABRICKS_CATALOG : peco
250+ DATABRICKS_USER : ${{ secrets.TEST_PECO_SP_ID }}
244251 steps :
245252 - name : Check out repository
246253 uses : actions/checkout@v4
@@ -287,7 +294,7 @@ jobs:
287294 rm -f .coverage*
288295
289296 echo "Running common tests with coverage..."
290- poetry run pytest "${{ matrix.test_file }}" --cov=src --cov-report=xml:$COVERAGE_FILE --cov-report=term -v
297+ poetry run pytest "${{ matrix.test_file }}" --cov=src --cov-report=xml:$COVERAGE_FILE --cov-report=term -v || [ $? -eq 5 ]
291298
292299 # Save coverage data with unique name
293300 if [ -f ".coverage" ]; then
You can’t perform that action at this time.
0 commit comments