Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(ci): share pytest startup in full warehouse checks (#131008)

posthog[bot]c9dd9d15d1e1
diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml
index 4536c6e39a26..b3a08c3323cc 100644
--- a/.github/workflows/ci-python.yml
+++ b/.github/workflows/ci-python.yml
@@ -752,15 +752,21 @@ jobs:
VENDORS: ${{ steps.select.outputs.vendors }}
run: |
narrow=()
+ targets=(products/warehouse_sources/backend/temporal/data_imports/sources/tests)
if [ "$MODE" = "vendors" ]; then
narrow=("--source-vendors=${VENDORS// /,}")
+ else
+ credential_tests=products/warehouse_sources/backend/temporal/data_imports/sources/common/test
+ targets+=("$credential_tests/test_credential_kind.py" "$credential_tests/test_credential_auth_type.py")
fi
- pytest -p no:cacheprovider products/warehouse_sources/backend/temporal/data_imports/sources/tests --tb=short "${narrow[@]}"
+ pytest -p no:cacheprovider "${targets[@]}" --tb=short "${narrow[@]}"
# The committed credential kind and auth type maps hold one line per vendor. A vendors
- # run skips Backend CI, so these suites run here in both modes, or a vendor change that
+ # run skips Backend CI, so these suites run in both modes, or a vendor change that
# makes the maps stale would merge. They need no database.
- name: Run credential map tests
+ # The catalog's vendor filter would deselect credential cases in a shared session.
+ if: steps.select.outputs.mode == 'vendors'
run: |
credential_tests=products/warehouse_sources/backend/temporal/data_imports/sources/common/test
pytest -p no:cacheprovider "$credential_tests/test_credential_kind.py" "$credential_tests/test_credential_auth_type.py" --tb=short