-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (43 loc) · 1.49 KB
/
conformance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Self-test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
- cron: "10 10 * * *"
jobs:
selftest:
strategy:
matrix:
include:
- { sigstore-infra: production, skip-cpython-release-tests: false }
- { sigstore-infra: production, skip-cpython-release-tests: true }
- { sigstore-infra: staging, skip-cpython-release-tests: false }
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: "pip"
- name: install sigstore-python
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
# allow sigstore-python-conformance wrapper to find "sigstore" binary from venv
PATH=$PWD/sigstore-env/bin/:$PATH
$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-env/bin/conformance
skip-cpython-release-tests: ${{ matrix.skip-cpython-release-tests }}
environment: ${{ matrix.sigstore-infra }}
xfail: "test_verify_with_trust_root test_verify_dsse_bundle_with_trust_root"