CICD-081 · Run unit tests first
Encyclopedia · Tests and quality checks · All snippets
Previous · CICD-080 · Next · CICD-082
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites repository with test fixtures and task-specific quality dependencies.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
pytest -q -m 'not integration' --maxfail=13. How it works
Pytest discovers the selected test files or markers and returns a process exit status reflecting the test outcome.
4. Verify the result
Register the marker and verify deselection counts before relying on it.
Validation syntax-validated (Bash parse). Status definitions.