Supply pinned OpenCV to custom pytest jobs

This commit is contained in:
firestar5683
2026-11-28 01:31:21 -06:00
parent 92e09398e8
commit adca218266
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -343,6 +343,11 @@ jobs:
run: |
uv pip install --python .venv/bin/python --only-binary av av==19.0.1
.venv/bin/python -c "import av; assert 'libx264' in av.codecs_available"
- name: Provide pinned OpenCV DNN for vision contract tests
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
run: |
uv pip install --python .venv/bin/python --no-deps --only-binary :all: opencv-python-headless==4.11.0.86
.venv/bin/python -c "import cv2; assert cv2.__version__ == '4.11.0'; assert callable(cv2.dnn.readNetFromONNX); assert callable(cv2.dnn.NMSBoxes)"
- name: Provide Mesa software graphics for pixel-level tests
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
run: sudo apt-get update && sudo apt-get install -y libegl1 libgles-dev libgl1-mesa-dri
+1 -1
View File
@@ -1 +1 @@
{"protected_inventory_sha256": "a1096aa44017b792f434780aa2f15d165f8832c38a67821b709aabaa1fac40d7", "schema_version": 1}
{"protected_inventory_sha256": "3ffc3035e61b03a304cef5070c4d54badc19b61fccbcbd751852c428964e1df3", "schema_version": 1}