Skip to content

Commit 15c6f29

Browse files
committed
Source the .env file if it exists
1 parent 5e01b81 commit 15c6f29

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/run_integration_tests

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ echo "🚀 PostHog Python SDK Integration Tests"
3232
echo "=" | head -c 40 | tr '\n' '='
3333
echo
3434

35+
# Load .env file if it exists
36+
if [ -f ".env" ]; then
37+
echo "📝 Loading environment variables from .env file..."
38+
set -a # automatically export all variables
39+
source .env
40+
set +a # disable auto-export
41+
fi
42+
3543
# Check if the integration test file exists
3644
INTEGRATION_TEST_FILE="posthog/test/manual_integration/test_flag_dependencies.py"
3745
if [ ! -f "$INTEGRATION_TEST_FILE" ]; then

0 commit comments

Comments
 (0)