ci: add sigstore as a downstream test (#12054)

* ci: add sigstore as a downstream test

Signed-off-by: William Woodruff <william@trailofbits.com>

* sigstore: place it in /tmp

Signed-off-by: William Woodruff <william@trailofbits.com>

* sigstore: add a NOTE

Signed-off-by: William Woodruff <william@trailofbits.com>

---------

Signed-off-by: William Woodruff <william@trailofbits.com>
This commit is contained in:
William Woodruff 2024-12-02 11:38:31 -05:00 committed by GitHub
parent ac8c3003cb
commit 7b51f03d07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

19
.github/downstream.d/sigstore.sh vendored Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash -ex
case "${1}" in
install)
# NOTE: placed in /tmp to avoid inscrutable pytest failures
# with 'unrecognized arguments: --benchmark-disable'
git clone --depth=1 https://github.com/sigstore/sigstore-python /tmp/sigstore-python
cd /tmp/sigstore-python
git rev-parse HEAD
pip install -e ".[test]"
;;
run)
cd /tmp/sigstore-python
pytest test
;;
*)
exit 1
;;
esac

View file

@ -371,6 +371,7 @@ jobs:
- certbot-josepy
- mitmproxy
- scapy
- sigstore
PYTHON:
- '3.12'
name: "Downstream tests for ${{ matrix.DOWNSTREAM }}"