blob: af1f402f5f90cf496d11b83a00a2e819d3b8bf71 [file] [log] [blame] [edit]
#!/bin/bash -ex
case "${1}" in
install)
# NOTE: placed in /tmp to avoid inscrutable pytest failures
# with 'unrecognized arguments: --benchmark-disable'
cp -r sigstore-python /tmp/sigstore-python
cd /tmp/sigstore-python
uv pip install pip
pip install -e ".[test]"
;;
run)
cd /tmp/sigstore-python
# Run only the unit tests, and skip any that require network access.
pytest test/unit --skip-online
;;
*)
exit 1
;;
esac