Skip to content

Commit

Permalink
take advantage of recurisve urls reqs (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejm714 authored Apr 5, 2024
1 parent de0df1e commit f11fa5a
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f11fa5a

Please sign in to comment.