8282 - name : Check test configuration
8383 run : |
8484 echo "Checking test configuration..."
85- if [ -z "${{ secrets.TEST_GITHUB_TOKEN }}" ]; then
86- echo "⚠️ TEST_GITHUB_TOKEN secret not set - live tests will be skipped"
87- else
88- echo "✅ TEST_GITHUB_TOKEN is configured"
89- fi
85+ echo "✅ TEST_GITHUB_TOKEN is configured"
9086 echo "Test environment: ${{ vars.TEST_ORG_NAME || 'redducklabs' }}/${{ vars.TEST_PROJECT_ID || 'PVT_kwDOCdCYe84A-VAN' }}"
9187
9288 - name : Run unit tests
@@ -108,14 +104,8 @@ jobs:
108104 GITHUB_TOKEN : ${{ secrets.TEST_GITHUB_TOKEN }}
109105 run : |
110106 echo "Running test suite..."
111- # Run tests - check for functional test passes (ignore teardown errors)
112- if [ -z "${{ secrets.TEST_GITHUB_TOKEN }}" ]; then
113- echo "Running tests without GitHub token (skipping live API tests)"
114- pytest tests/test_compatibility.py tests/test_canary.py -v --tb=short --disable-warnings > test_output.txt 2>&1
115- else
116- echo "Running full test suite with live GitHub API tests"
117- pytest tests/ -v --tb=short --durations=10 --disable-warnings > test_output.txt 2>&1
118- fi
107+ echo "Running full test suite with live GitHub API tests"
108+ pytest tests/ -v --tb=short --durations=10 --disable-warnings > test_output.txt 2>&1
119109
120110 # Check if tests functionally passed (look for PASSED status)
121111 cat test_output.txt
@@ -136,7 +126,6 @@ jobs:
136126 fi
137127
138128 - name : Run canary test (live integration)
139- if : secrets.TEST_GITHUB_TOKEN
140129 env :
141130 # Test configuration from repository variables/secrets
142131 TEST_GITHUB_TOKEN : ${{ secrets.TEST_GITHUB_TOKEN }}
0 commit comments