From ca368aa10299f2a9c0ea4f9bfb0bc9d1dba3cdd4 Mon Sep 17 00:00:00 2001 From: Konstantinos Lampridis Date: Sat, 2 Nov 2024 20:56:17 +0200 Subject: [PATCH] ci: reset to production CI/CD Pipeline settings --- .github/workflows/test.yaml | 4 ++-- Dockerfile | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6ce20d0..a3389d0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -34,7 +34,7 @@ env: ####### Pipeline Settings ####### ##### JOB ON/OFF SWITCHES ##### - RUN_UNIT_TESTS: "false" + RUN_UNIT_TESTS: "true" RUN_LINT_CHECKS: "true" PUBLISH_ON_PYPI: "true" DRAW_DEPENDENCIES: "true" @@ -46,7 +46,7 @@ env: # Override Docker Policy-dependent decision-making and # Accept any ALL (branch/build) to Publish to Dockerhub # if true, will push image and ingnore below policy - ALWAYS_BUILD_N_PUBLSIH_DOCKER: "true" + ALWAYS_BUILD_N_PUBLSIH_DOCKER: "false" # CDeployment : Builds and Publishes only if Tests ran and passed # CDelivery : Builds and Publishes if Tests Passed or if Tests were Skipped diff --git a/Dockerfile b/Dockerfile index 4a17ffb..b2dcb1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -178,14 +178,11 @@ COPY ${DEMO_STYLE_IMAGE} "${REPO_DEMO_IMAGES_LOCATION}/" # ie if on host is tests/data/blue-red_w300-h225.jpg # then in image it will be /app/tests/data/blue-red_w300-h225.jpg -# Indicate that these are valid Content and Style Images for Demo -# Show nst where to find the Demo Content and Style Images + +# locate Content and Style Images inside docker-image for 'demo' CLI command ENV CONTENT_IMAGE_DEMO="/app/${DEMO_CONTENT_IMAGE}" ENV STYLE_IMAGE_DEMO="/app/${DEMO_STYLE_IMAGE}" - -# Define default command, that when run, a python process is spawned, which -# runs the NST Algorithm on the Demo Content and Style Images for a few iterations CMD ["nst", "demo"] ### Stage: Default Target (for Production)