Skip to content

Commit e4f3636

Browse files
committed
testing this
1 parent cebe84d commit e4f3636

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/agentex-tutorials-test.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,32 @@ jobs:
101101
working-directory: ./examples/tutorials
102102
env:
103103
OPENAI_API_KEY: ${{ secrets.TUTORIAL_OPENAI_API_KEY }}
104-
HEALTH_CHECK_PORT: 8080 # Use non-privileged port for temporal worker health checks
104+
HEALTH_CHECK_PORT: 8080 # Use non-privileged port for temporal worker health checks
105105
run: |
106106
echo "Testing tutorial: ${{ matrix.tutorial }}"
107107
AGENTEX_API_BASE_URL="http://localhost:5003" \
108108
./run_agent_test.sh --build-cli "${{ matrix.tutorial }}"
109109
110110
- name: Upload Test Results
111+
if: always()
112+
run: |
113+
# Sanitize tutorial name for artifact upload
114+
SANITIZED_NAME=$(echo "${{ matrix.tutorial }}" | sed 's/\//-/g')
115+
echo "Uploading test results for: ${{ matrix.tutorial }} (as: test-results-$SANITIZED_NAME)"
116+
117+
# Create a temporary directory with the sanitized name
118+
mkdir -p "test-results-$SANITIZED_NAME"
119+
cp /tmp/agentex-*.log "test-results-$SANITIZED_NAME/" 2>/dev/null || echo "No log files to copy"
120+
121+
# Upload using the actions/upload-artifact action
122+
echo "artifact-name=test-results-$SANITIZED_NAME" >> $GITHUB_ENV
123+
124+
- name: Upload Artifact
111125
if: always()
112126
uses: actions/upload-artifact@v4
113127
with:
114-
name: test-results-${{ replace(matrix.tutorial, '/', '-') }}
115-
path: |
116-
/tmp/agentex-*.log
128+
name: ${{ env.artifact-name }}
129+
path: test-results-*
117130
retention-days: 1
118131

119132
test-summary:

0 commit comments

Comments
 (0)