Skip to content

Commit c356fd5

Browse files
committed
fix(ci): exclude benchmark group from CI dependency installation
Benchmark dependencies should only be installed when running actual benchmarks, not in standard CI pipeline. This also resolves Python 3.13 compatibility issues with the av package.
1 parent cb18d24 commit c356fd5

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

scripts/ci/actions/setup-python-env/install-deps.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
# Python 3.13: Exclude benchmark group due to missing wheels for av (via mineru -> qwen-vl-utils)
5-
# See: https://github.com/PyAV-Org/PyAV/issues - av 16.1.0 only has wheels up to Python 3.12
6-
PYTHON_VERSION=$(uv run python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
7-
if [[ "$PYTHON_VERSION" == "3.13" ]]; then
8-
uv sync --all-packages --group dev --group docs --group doc --all-extras --no-install-project --no-install-workspace
9-
else
10-
uv sync --all-packages --all-groups --all-extras --no-install-project --no-install-workspace
11-
fi
4+
# Exclude benchmark group in CI - only needed for actual benchmark runs
5+
uv sync --all-packages --group dev --group docs --group doc --all-extras --no-install-project --no-install-workspace
126

137
if ! uv run python -c "import cv2; assert hasattr(cv2, 'cvtColor')" 2>/dev/null; then
148
echo "⚠️ Detected broken cv2 module, reinstalling OpenCV packages..." >&2

0 commit comments

Comments
 (0)