CI: improve workflow
Some checks failed
/ build (push) Failing after 25s

This commit is contained in:
phil 2024-10-27 13:35:16 +01:00
parent 9c9b26d036
commit 735ad5dd9c
3 changed files with 13 additions and 8 deletions

View file

@ -5,7 +5,7 @@ jobs:
build:
runs-on: container
container:
image: tiptop:5000/treetrail-backend-ci
image: tiptop:5000/python-ci
volumes:
- "/root/.cache/uv:uv_cache"
services:

View file

@ -1,7 +1,8 @@
FROM debian:trixie-slim
# Build: podman build -t localhost/python-ci -f Containerfile.ci
FROM localhost/trixie_python
RUN apt-get -y --no-install-recommends install nodejs git python3-pytest && \
apt-get clean && \
rm -rf /var/lib/apt/listsd/* && \
rm -rf /root/.cache
RUN apt-get update && \
apt-get install --no-install-recommends -y python-is-python3 python3-pip python3-venv nodejs git podman buildah pipx && \
apt-get clean && rm -rf /var/lib/apt/lists/* && rm -rf /root/.cache && \
rm -rf /root/.cache && \
pip install --break-system-packages uv

View file

@ -1,3 +1,5 @@
# Build: podman build -t trixie_python -f Containerfile.trixie_python
FROM debian:trixie-slim
RUN <<EOT
@ -16,4 +18,6 @@ ENV UV_LINK_MODE=copy \
UV_COMPILE_BYTECODE=1 \
UV_PYTHON_DOWNLOADS=never \
#UV_PYTHON=python3.12 \
UV_PROJECT_ENVIRONMENT=/app
UV_PROJECT_ENVIRONMENT=/app \
PYTHONPATH=/app/lib/python3.12/site-packages \
PATH=/app/bin:$PATH