From 7b51f03d07e8ca46f9adb047be78a436837754a4 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Mon, 2 Dec 2024 11:38:31 -0500 Subject: [PATCH] ci: add sigstore as a downstream test (#12054) * ci: add sigstore as a downstream test Signed-off-by: William Woodruff * sigstore: place it in /tmp Signed-off-by: William Woodruff * sigstore: add a NOTE Signed-off-by: William Woodruff --------- Signed-off-by: William Woodruff --- .github/downstream.d/sigstore.sh | 19 +++++++++++++++++++ .github/workflows/ci.yml | 1 + 2 files changed, 20 insertions(+) create mode 100755 .github/downstream.d/sigstore.sh diff --git a/.github/downstream.d/sigstore.sh b/.github/downstream.d/sigstore.sh new file mode 100755 index 000000000..86ad12dc4 --- /dev/null +++ b/.github/downstream.d/sigstore.sh @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e3f149f3..243bc4d0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -371,6 +371,7 @@ jobs: - certbot-josepy - mitmproxy - scapy + - sigstore PYTHON: - '3.12' name: "Downstream tests for ${{ matrix.DOWNSTREAM }}"