From f11fa5a1fbc4855c321c3b4595a85500527d6bf6 Mon Sep 17 00:00:00 2001 From: "Emily (Miller) Dorne" Date: Fri, 5 Apr 2024 16:13:03 -0700 Subject: [PATCH] take advantage of recurisve urls reqs (#313) --- .github/workflows/tests.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2790c7b1..ac3196e5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -135,21 +135,19 @@ jobs: - name: Install wheel; test CLI + models with assets run: | - python -m venv .venv-whl - PYTHON_BIN=bin/python - .venv-whl/$PYTHON_BIN -m pip install --upgrade pip - .venv-whl/$PYTHON_BIN -m pip install dist/zamba-*.whl - .venv-whl/$PYTHON_BIN -m zamba --help - .venv-whl/$PYTHON_BIN -c "from zamba.data.video import MegadetectorLiteYoloX; MegadetectorLiteYoloX()" + uv venv .venv-whl + PYTHON_BIN=.venv-whl/bin/python + uv pip install --python=$PYTHON_BIN zamba@$(find dist -name 'zamba*.whl') --force-reinstall + $PYTHON_BIN -m zamba --help + $PYTHON_BIN -c "from zamba.data.video import MegadetectorLiteYoloX; MegadetectorLiteYoloX()" - name: Install source; test CLI + models with assets run: | - python -m venv .venv-sdist - PYTHON_BIN=bin/python - .venv-sdist/$PYTHON_BIN -m pip install --upgrade pip - .venv-sdist/$PYTHON_BIN -m pip install dist/zamba-*.tar.gz - .venv-sdist/$PYTHON_BIN -m zamba --help - .venv-sdist/$PYTHON_BIN -c "from zamba.data.video import MegadetectorLiteYoloX; MegadetectorLiteYoloX()" + uv venv .venv-sdist + PYTHON_BIN=.venv-sdist/bin/python + uv pip install --python=$PYTHON_BIN zamba@$(find dist -name 'zamba*.tar.gz') --force-reinstall + $PYTHON_BIN -m zamba --help + $PYTHON_BIN -c "from zamba.data.video import MegadetectorLiteYoloX; MegadetectorLiteYoloX()" notify: name: Notify failed build