From cf0088e6bb4cd541a3cc871bee9ac4492925d421 Mon Sep 17 00:00:00 2001 From: Jules van Rie Date: Tue, 18 Nov 2025 10:27:44 +0100 Subject: [PATCH] dutch version --- .env | 6 ++++++ .envrc | 1 + .github/workflows/python-ci.yml | 2 +- api/fast.py | 2 +- app.py | 7 ------- tests/test_api_root.py | 4 ++-- tests/{requirements.txt => test_requirements.txt} | 0 7 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 .env create mode 100644 .envrc delete mode 100644 app.py rename tests/{requirements.txt => test_requirements.txt} (100%) diff --git a/.env b/.env new file mode 100644 index 0000000..67ba69e --- /dev/null +++ b/.env @@ -0,0 +1,6 @@ +PROJECT="my-iris-project-478417" +IMAGE="casa-cd" +REGION="europe-west1" +DOCKER_REPO_NAME="docker" +TAG="0.1" +IMAGE_URI=${REGION}-docker.pkg.dev/${PROJECT}/${DOCKER_REPO_NAME}/${IMAGE}:${TAG} diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..fe7c01a --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +dotenv diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index 8142826..5025e31 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip cython wheel - pip install -r tests/requirements.txt + pip install -r tests/test_requirements.txt # 4. Build test image - name: Build test Docker image diff --git a/api/fast.py b/api/fast.py index dc3b65e..624722d 100644 --- a/api/fast.py +++ b/api/fast.py @@ -16,7 +16,7 @@ @app.get('/') def root(): response = { - 'greeting': 'Servus, griaß di!', # This is a typical Bavarian greeting ;) + 'greeting': 'Goedemorgen!', 'timestamp': datetime.now() } diff --git a/app.py b/app.py deleted file mode 100644 index 1df5df4..0000000 --- a/app.py +++ /dev/null @@ -1,7 +0,0 @@ -import streamlit as st - -from api.fast import root - -st.write(root()) - -st.write('This is obviously very simple, in reality one would rather use this page to display API results more nicely! :)') diff --git a/tests/test_api_root.py b/tests/test_api_root.py index 87bc7b3..0e7f470 100644 --- a/tests/test_api_root.py +++ b/tests/test_api_root.py @@ -6,7 +6,7 @@ class TestApiRoot(unittest.TestCase): def test_api_root(self): - # Adding a 15s sleep timer to ensure + # Adding a 15s sleep timer to ensure # that the container has time to start up time.sleep(15) @@ -14,4 +14,4 @@ def test_api_root(self): url = 'http://localhost:8080' result = requests.get(url).json() - self.assertEqual(result['greeting'], 'Servus, griaß di!') + self.assertEqual(result['greeting'], 'Goedemorgen!') diff --git a/tests/requirements.txt b/tests/test_requirements.txt similarity index 100% rename from tests/requirements.txt rename to tests/test_requirements.txt