Skip to content

Commit

Permalink
self-test: Install sigstore in separate virtualenv
Browse files Browse the repository at this point in the history
This prevents sigstore dependencies from being accidentally
used by the test suite.

Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
  • Loading branch information
jku committed Jan 13, 2025
1 parent e10e40a commit 038c264
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,21 @@ jobs:
cache: "pip"

- name: install sigstore-python
run: pip install "sigstore >= 3.5.0, < 4.0"
run: |
python3 -m venv sigstore-env
./sigstore-env/bin/python -m pip install "sigstore >= 3.5.0, < 4.0"
cat <<EOF > ./sigstore-env/bin/conformance
#!/bin/sh
$PWD/sigstore-env/bin/python $PWD/sigstore-python-conformance "$@"
EOF
chmod +x ./sigstore-env/bin/conformance
- name: conformance test sigstore-python
uses: ./
with:
entrypoint: ${{ github.workspace }}/sigstore-python-conformance
entrypoint: ./sigstore-env/bin/conformance
skip-cpython-release-tests: ${{ matrix.skip-cpython-release-tests }}
environment: ${{ matrix.sigstore-env }}
xfail: "test_verify_with_trust_root test_verify_dsse_bundle_with_trust_root"

0 comments on commit 038c264

Please sign in to comment.