Merge pull request #31 from infosiftr/python3

Update GHA to Python 3 for "testclient.py"
This commit is contained in:
Jonny Stoten 2024-08-23 16:24:39 +01:00 коммит произвёл GitHub
Родитель 4fc4c25226 d60b25ddb8
Коммит 6f17ffbcfd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 3 добавлений и 4 удалений

2
.github/workflows/ci.yml поставляемый
Просмотреть файл

@ -15,6 +15,6 @@ jobs:
- uses: actions/checkout@v3 # clone Notary upstream repo (used for generating necessary certificates to test against)
with:
repository: 'notaryproject/notary'
ref: '74ee191c214795fb5e839bca841c7be2030d0002'
ref: '887a007da8841e49023684656926d79d89d5a9d8'
path: 'notary-src'
- run: NOTARY_SOURCE="$GITHUB_WORKSPACE/notary-src" ./.test/test.sh

Просмотреть файл

@ -112,10 +112,9 @@ docker run "${args[@]}" \
docker run "${args[@]}" \
--name notary-testclient \
--init \
pypy:2.7-bullseye bash -Eeuo pipefail -xc '
python:3.10-bullseye bash -Eeuo pipefail -xc '
ln -svf ../../fixtures/root-ca.crt cmd/notary/
pypy ./buildscripts/testclient.py \
python3 ./buildscripts/testclient.py \
--reponame registry.local:5000/testclient/testclient \
--server "$DOCKER_CONTENT_TRUST_SERVER"
'
# TODO switch to something like "python:3.10-bullseye" once testclient.py actually supports Python 3 🙈