disable tests for alpine

This commit is contained in:
scito
2022-12-29 01:43:22 +01:00
parent 7e684ff19e
commit aa0de699fe
2 changed files with 3 additions and 3 deletions

View File

@@ -72,6 +72,8 @@ jobs:
# build on feature branches, push only on master branch
# TODO push: ${{ github.ref == 'refs/heads/master' }}
push: true
build-args: |
run_tests=false
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

View File

@@ -11,9 +11,7 @@ RUN apk add --no-cache nano \
&& if [[ "$(apk --print-arch)" == "aarch64" ]]; then apk add --no-cache --virtual .build-deps gcc libc-dev python3-dev py3-setuptools zlib-dev jpeg-dev; fi \
&& pip install protobuf qrcode Pillow \
&& if [[ "$(apk --print-arch)" == "aarch64" ]]; then apk del .build-deps; fi \
&& if [[ "$run_tests" == "true" ]]; then /extract/run_pytest.sh test_extract_otp_secret_keys_pytest.py -k "not qreader" --relaxed --build-arg run_tests=false; else echo "Not running tests..."; fi
# && if [[ "$TARGETARCH" == "arm64" ]]; then apk add zlib-dev jpeg-dev; fi \
&& if [[ "$run_tests" == "true" ]]; then /extract/run_pytest.sh test_extract_otp_secret_keys_pytest.py -k "not qreader" --relaxed; else echo "Not running tests..."; fi
WORKDIR /files