From 24d2d5c28ce67cda6511b9b7bf17754a84f9e691 Mon Sep 17 00:00:00 2001 From: Tim Hagen Date: Fri, 6 Sep 2024 14:50:38 +0200 Subject: [PATCH] configured TIRE_CONFIG appropriately in CI and dockerfile for make setup --- .github/workflows/tests.yml | 2 ++ application/Dockerfile.prod | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 15348eeb..17d28ab8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,6 +28,8 @@ jobs: sudo bash -c 'mkdir -p "/etc/discourse/" && echo "I am so secret" > "/etc/discourse/client-api-key"' pip3 install .[dev,test] make setup + env: + TIRA_CONFIG: ${{github.workspace}}/application/config/tira-application-config.yml - name: Run backend tests working-directory: ${{github.workspace}}/application/test run: pytest diff --git a/application/Dockerfile.prod b/application/Dockerfile.prod index b8ff0f86..ff43718c 100644 --- a/application/Dockerfile.prod +++ b/application/Dockerfile.prod @@ -56,6 +56,7 @@ pip3 install -q --no-cache-dir --user ../python-client .[test,deploy] chmod +x ./src/tira_app/endpoints/aha # FIXME; aha is not copied to the Production Container # Run tests +export TIRA_CONFIG="/tira/config/tira-application-config.yml" make setup cd test pytest