Skip to content

Commit b25ed87

Browse files
committed
Added check for exit code 5
1 parent 602809b commit b25ed87

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/coverage-check-parallel.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)