This commit is contained in:
@@ -59,6 +59,8 @@ jobs:
|
||||
PY
|
||||
- name: Install Web runtime and test dependencies
|
||||
run: python -m pip install -r ranch_web/requirements-test.txt
|
||||
- name: Offline battle loss cooldown and progression regression
|
||||
run: python -B -m unittest ranch_assistant.tests.test_battle_retry ranch_assistant.tests.test_progression_replay_loop ranch_web.tests.test_web_policies -v
|
||||
- name: Offline sweep hidden handoff, battles, and engine regression
|
||||
timeout-minutes: 3
|
||||
run: |
|
||||
@@ -111,6 +113,12 @@ jobs:
|
||||
WEB_VERSION: ${{ steps.version.outputs.version }}
|
||||
VCS_REF: ${{ github.sha }}
|
||||
run: docker build --build-arg "WEB_VERSION=$WEB_VERSION" --build-arg "VCS_REF=$VCS_REF" --tag ranch-web-smoke .
|
||||
- name: Verify image version and source revision
|
||||
env:
|
||||
VCS_REF: ${{ github.sha }}
|
||||
run: |
|
||||
docker image inspect ranch-web-smoke --format '{{json .Config.Labels}}' > /tmp/ranch-web-image-labels.json
|
||||
python -c "import json,os; from ranch_web import __version__; labels=json.load(open('/tmp/ranch-web-image-labels.json')); assert labels['org.opencontainers.image.version']==__version__; assert labels['org.opencontainers.image.revision']==os.environ['VCS_REF']"
|
||||
- name: Offline container health, persistence permissions, and graceful stop
|
||||
run: |
|
||||
docker run --detach --name ranch-web-smoke --network none --read-only \
|
||||
|
||||
Reference in New Issue
Block a user