From eb5680379fa0fcfca2a046409189d6fb21a5c600 Mon Sep 17 00:00:00 2001 From: Thephaseless Date: Fri, 18 Oct 2024 15:38:52 +0000 Subject: [PATCH] do not test on arm --- Dockerfile | 2 +- pytest.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 pytest.sh diff --git a/Dockerfile b/Dockerfile index f83ade4..1650c3c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,5 +56,5 @@ COPY fix_nodriver.py ./ RUN . /app/.venv/bin/activate && python fix_nodriver.py COPY . . RUN chmod +x entrypoint.sh -RUN ./entrypoint.sh &&. /app/.venv/bin/activate && poetry run pytest +RUN ./pytest.sh CMD ["./entrypoint.sh", "&&", ".", "/app/.venv/bin/activate", "&&", "python", "main.py"] \ No newline at end of file diff --git a/pytest.sh b/pytest.sh new file mode 100755 index 0000000..318e85d --- /dev/null +++ b/pytest.sh @@ -0,0 +1,3 @@ +if [ "$(uname -m)" == "x86_64" ]; then + ./entrypoint.sh &&. /app/.venv/bin/activate && poetry run pytest +fi \ No newline at end of file