Skip to content

Commit 4f1ac7c

Browse files
declan-scaleclaude
andcommitted
fix(tutorials): install dev extras when running tutorial pytest
After #367 dropped pytest from agentex-sdk's runtime deps, `uv run pytest` in tutorials no longer finds pytest — it lives in each tutorial's [project.optional-dependencies] dev. Pass --extra dev so uv installs it before spawning pytest. Fixes the "Failed to spawn: pytest" regression seen across every tutorial test job since 2026-05-29. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e1b31d9 commit 4f1ac7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/tutorials/run_agent_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,15 +260,15 @@ run_test() {
260260

261261

262262
# Run the tests with retry mechanism
263-
local -a pytest_cmd=("uv" "run" "pytest")
263+
local -a pytest_cmd=("uv" "run" "--extra" "dev" "pytest")
264264
if [ "$BUILD_CLI" = true ]; then
265265
local wheel_file
266266
wheel_file=$(ls /home/runner/work/*/*/dist/agentex_sdk-*.whl 2>/dev/null | head -n1)
267267
if [[ -z "$wheel_file" ]]; then
268268
wheel_file=$(ls "${SCRIPT_DIR}/../../dist/agentex_sdk-*.whl" 2>/dev/null | head -n1)
269269
fi
270270
if [[ -n "$wheel_file" ]]; then
271-
pytest_cmd=("uv" "run" "--with" "$wheel_file" "pytest")
271+
pytest_cmd=("uv" "run" "--extra" "dev" "--with" "$wheel_file" "pytest")
272272
fi
273273
fi
274274

0 commit comments

Comments
 (0)