[Python]: Pytest improvements (#2348)

* feat: try running in parallel in CI

* fix: simplify

* feat: add task

* fix: increase retry delay
This commit is contained in:
matt
2025-09-26 11:47:34 -04:00
committed by GitHub
parent c0fa7b3297
commit 35b97be825
3 changed files with 10 additions and 2 deletions

View File

@@ -199,3 +199,11 @@ tasks:
npx chokidar "sdks/**/*.{py,ts,go}" --ignore "**/node_modules/**" --ignore "**/.git/**" --ignore "**/dist/**" --ignore "**/build/**" --initial -c "echo 'TODO: Add a task to generate and sync the docs'" &
cd frontend/docs/ && pnpm run taskfile-dev
pytest:
dir: ./sdks/python
vars:
WORKERS: '{{.WORKERS | default "auto"}}'
RETRIES: '{{.RETRIES | default "3"}}'
EXTRA_ARGS: '{{.EXTRA_ARGS | default ""}}'
cmds:
- poetry run pytest -n auto --retries 3 --retry-delay 5