fix: stream tracked source into CI qualification container
Rebuild & Deploy / rebuild (push) Failing after 1m53s
Rebuild & Deploy / rebuild (push) Failing after 1m53s
This commit is contained in:
1 parent
41ca590744
commit
5a02b8f0c1
1 file changed
+7
-4
@@ -12,11 +12,14 @@ jobs:
|
|||||||
- name: Qualify offline account and chat contracts before building or deploying
|
- name: Qualify offline account and chat contracts before building or deploying
|
||||||
run: |
|
run: |
|
||||||
# No NAS, speech SDK, model calls or legacy live-default conftest.
|
# No NAS, speech SDK, model calls or legacy live-default conftest.
|
||||||
# Read-only source mount; test secrets and databases use container /tmp.
|
# The socket-backed runner checkout path is not a host bind source.
|
||||||
docker run --rm --user "$(id -u):$(id -g)" \
|
# Stream only tracked source; secrets/runtime files are never included.
|
||||||
|
git archive HEAD | docker run --rm -i --user "$(id -u):$(id -g)" \
|
||||||
-e HOME=/tmp -e PYTHONDONTWRITEBYTECODE=1 \
|
-e HOME=/tmp -e PYTHONDONTWRITEBYTECODE=1 \
|
||||||
-v "$PWD:/src:ro" -w /src python:3.12-slim-bookworm \
|
python:3.12-slim-bookworm sh -eu -c '
|
||||||
sh -eu -c '
|
mkdir -p /tmp/src
|
||||||
|
tar -xf - -C /tmp/src
|
||||||
|
cd /tmp/src
|
||||||
python -m venv /tmp/offline-tests
|
python -m venv /tmp/offline-tests
|
||||||
/tmp/offline-tests/bin/python -m pip install --no-cache-dir pytest pytest-asyncio -r control/requirements.txt
|
/tmp/offline-tests/bin/python -m pip install --no-cache-dir pytest pytest-asyncio -r control/requirements.txt
|
||||||
/tmp/offline-tests/bin/python scripts/generate_hope_themes.py --check
|
/tmp/offline-tests/bin/python scripts/generate_hope_themes.py --check
|
||||||
|
|||||||
Reference in new issue
Block a user