CICD-060 · Run tests using uv
Encyclopedia · Python CI and uv · All snippets
Previous · CICD-059 · Next · CICD-061
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites uv or Python dependencies pinned with fixture application and tests.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
uv run --locked pytest -q3. How it works
uv run executes pytest in the project environment under the lock. Ensure the test command exists in the dependency groups installed in CI.
4. Verify the result
Ensure pytest is in the declared default dev group and test exact path discovery.
Validation syntax-validated (Bash parse). Status definitions.