CICD-058 · Install with pip hash verification
Encyclopedia · Python CI and uv · All snippets
Previous · CICD-057 · Next · CICD-059
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
python -m pip install --require-hashes -r requirements.txt3. How it works
--require-hashes requires pinned, hashed distributions for every installed dependency. A source with a mismatching hash fails installation.
4. Verify the result
Lock transitive requirements and hashes before CI. A modified distribution is rejected.
Validation syntax-validated (Bash parse). Status definitions.