Skip to content

Commit c65f932

Browse files
committed
fix: retry smoke tests to allow PyPI indexing delay
1 parent cd80b72 commit c65f932

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,15 @@ jobs:
9494

9595
- name: Smoke test from TestPyPI
9696
run: |
97-
uvx --no-cache \
98-
--index-url https://test.pypi.org/simple \
99-
--extra-index-url https://pypi.org/simple \
100-
--index-strategy unsafe-best-match \
101-
"teradata-mcp-server==${{ needs.build.outputs.version }}" --version
97+
for i in 1 2 3 4 5; do
98+
uvx --no-cache \
99+
--index-url https://test.pypi.org/simple \
100+
--extra-index-url https://pypi.org/simple \
101+
--index-strategy unsafe-best-match \
102+
"teradata-mcp-server==${{ needs.build.outputs.version }}" --version && break
103+
echo "Attempt $i failed — waiting 30s for TestPyPI to index the package..."
104+
sleep 30
105+
done
102106
103107
publish-pypi:
104108
name: Publish to PyPI
@@ -121,4 +125,8 @@ jobs:
121125

122126
- name: Smoke test from PyPI
123127
run: |
124-
uvx --no-cache "teradata-mcp-server==${{ needs.build.outputs.version }}" --version
128+
for i in 1 2 3 4 5; do
129+
uvx --no-cache "teradata-mcp-server==${{ needs.build.outputs.version }}" --version && break
130+
echo "Attempt $i failed — waiting 30s for PyPI to index the package..."
131+
sleep 30
132+
done

0 commit comments

Comments
 (0)