Add CI/CD pipeline, Renovate config and unit tests
CI / build-and-scan (pull_request) Failing after 2m9s
CI / build-and-scan (pull_request) Failing after 2m9s
This commit is contained in:
1 parent
03d6870c64
commit
4e7b51c334
11 files changed
+912
-1
No files matched your search
+17
-1
@@ -15,7 +15,7 @@ RUN cmake -G "Unix Makefiles" -DUHDR_WRITE_XMP=ON \
|
||||
&& cmake --build libultrahdr/build -j"$(nproc)"
|
||||
|
||||
# ---- Stage 2: runtime -------------------------------------------------------
|
||||
FROM python:3.11-alpine
|
||||
FROM python:3.11-alpine AS base
|
||||
|
||||
RUN apk add --no-cache exiftool libjpeg-turbo libstdc++
|
||||
|
||||
@@ -32,6 +32,22 @@ COPY LICENSE VERSION ./
|
||||
COPY docker/entrypoint.sh /app/entrypoint.sh
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
|
||||
FROM base AS test
|
||||
|
||||
RUN pip install --no-cache-dir pytest==9.1.1 pytest-cov==7.1.0
|
||||
COPY pytest.ini ./
|
||||
COPY tests/ tests/
|
||||
CMD ["pytest", "-v"]
|
||||
|
||||
FROM base AS lint
|
||||
|
||||
RUN pip install --no-cache-dir ruff==0.16.4
|
||||
COPY ruff.toml ./
|
||||
COPY tests/ tests/
|
||||
RUN ruff check .
|
||||
|
||||
FROM base
|
||||
|
||||
RUN adduser -D runner && mkdir -p /app/jobs && chown -R runner:runner /app
|
||||
USER runner
|
||||
|
||||
|
||||
Reference in new issue
Block a user