CICD-067 · Install a built wheel in a fresh environment
Encyclopedia · Python CI and uv · All snippets
Previous · CICD-066 · Next · CICD-068
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 venv .wheel-test
.wheel-test/bin/python -m pip install dist/*.whl
.wheel-test/bin/python -c 'import app'3. How it works
A fresh virtual environment installs the produced wheel. Test imports outside the source tree if you want to prove the wheel contains everything.
4. Verify the result
Run outside the source tree in a real smoke check to prove imports come from the installed distribution.
Validation syntax-validated (Bash parse). Status definitions.