diff --git a/.dockerignore b/.dockerignore index 59bdefa..2422ad0 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,10 +1,15 @@ +*.pyc +*.pyd +*.pyo .appends +.dockerignore .git +.gitattributes .github .gitignore -.gitattributes -.dockerignore Dockerfile +__pycache__ bin/run-in-docker.sh bin/run-tests-in-docker.sh test/ +venv/ diff --git a/Dockerfile b/Dockerfile index b386620..1f00736 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,19 @@ -FROM python:3.13.5-alpine3.22 +FROM python:3.13-alpine3.23 COPY requirements.txt /requirements.txt -RUN pip install -r /requirements.txt - RUN apk update && apk upgrade\ - && apk --no-cache add curl bash\ + && apk --no-cache add bash\ && apk cache clean + +RUN --mount=type=cache,target=/root/.cache/pip\ + PYTHONDONTWRITEBYTECODE=1\ + pip install --no-compile --no-cache\ + -r /requirements.txt + COPY . /opt/test-runner WORKDIR /opt/test-runner -ENTRYPOINT ["sh", "/opt/test-runner/bin/run.sh" ] \ No newline at end of file +ENTRYPOINT ["sh", "/opt/test-runner/bin/run.sh" ] diff --git a/test/example-syntax-error/results.json b/test/example-syntax-error/results.json index 7974e51..23512eb 100644 --- a/test/example-syntax-error/results.json +++ b/test/example-syntax-error/results.json @@ -1,7 +1,7 @@ { "version":3, "status":"error", - "message":" /usr/local/lib/python3.13/site-packages/_pytest/python.py:498: in importtestmodule\n mod = import_path(\n/usr/local/lib/python3.13/site-packages/_pytest/pathlib.py:587: in import_path\n importlib.import_module(module_name)\n/usr/local/lib/python3.13/importlib/__init__.py:88: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n:1387: in _gcd_import\n ???\n:1360: in _find_and_load\n ???\n:1331: in _find_and_load_unlocked\n ???\n:935: in _load_unlocked\n ???\n/usr/local/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntest/example-syntax-error/example_syntax_error_test.py:4: in \n from example_syntax_error import hello\nE File \"./test/example-syntax-error/example_syntax_error.py\", line 3\nE def hello();\nE ^\nE SyntaxError: expected ':'", + "message":" /usr/local/lib/python3.13/site-packages/_pytest/python.py:498: in importtestmodule\n mod = import_path(\n/usr/local/lib/python3.13/site-packages/_pytest/pathlib.py:587: in import_path\n importlib.import_module(module_name)\n/usr/local/lib/python3.13/importlib/__init__.py:88: in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n:1395: in _gcd_import\n ???\n:1360: in _find_and_load\n ???\n:1331: in _find_and_load_unlocked\n ???\n:935: in _load_unlocked\n ???\n/usr/local/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:186: in exec_module\n exec(co, module.__dict__)\ntest/example-syntax-error/example_syntax_error_test.py:4: in \n from example_syntax_error import hello\nE File \"./test/example-syntax-error/example_syntax_error.py\", line 3\nE def hello();\nE ^\nE SyntaxError: expected ':'", "tests":[ ]