Skip to content

Commit 316a8fd

Browse files
authored
Install dependencies in a virtualenv (#204)
1 parent ab91039 commit 316a8fd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ runs:
5050
- name: Run sigstore-conformance
5151
id: sigstore-conformance
5252
run: |
53-
${{ github.action_path }}/action.py
53+
./sigstore-conformance-env/bin/python ${{ github.action_path }}/action.py
5454
env:
5555
GHA_SIGSTORE_CONFORMANCE_ENVIRONMENT: "${{ inputs.environment }}"
5656
GHA_SIGSTORE_CONFORMANCE_ENTRYPOINT: "${{ inputs.entrypoint }}"

setup/setup.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ min_vers=$(cut -d '.' -f2 <<< "${vers}")
2828

2929
[[ "${maj_vers}" == "3" && "${min_vers}" -ge 7 ]] || die "Bad Python version: ${vers}"
3030

31-
python -m pip install --requirement "${GITHUB_ACTION_PATH}/requirements.txt"
31+
python3 -m venv sigstore-conformance-env
32+
./sigstore-conformance-env/bin/python -m pip install --requirement "${GITHUB_ACTION_PATH}/requirements.txt"

0 commit comments

Comments
 (0)