From 1e55a285e33700d68eacd522d2fb0e23c0ac12eb Mon Sep 17 00:00:00 2001 From: hannahwn Date: Mon, 1 Jun 2026 12:19:42 +0200 Subject: [PATCH 1/4] added git folder --- .../week-5/exercise_5/.github => .github}/workflows/ci.yml | 2 ++ data-track/week-5/exercise_2/Dockerfile | 3 ++- data-track/week-5/exercise_2/src/pipeline.py | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) rename {data-track/week-5/exercise_5/.github => .github}/workflows/ci.yml (92%) diff --git a/data-track/week-5/exercise_5/.github/workflows/ci.yml b/.github/workflows/ci.yml similarity index 92% rename from data-track/week-5/exercise_5/.github/workflows/ci.yml rename to .github/workflows/ci.yml index c484458..233bcc1 100644 --- a/data-track/week-5/exercise_5/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,8 @@ jobs: # TODO 1: Add a step to set up Python 3.11. # Use: actions/setup-python@v5 with python-version: "3.11" + with: + python-version: "" # TODO 2: Add a step to install pytest. # Use: pip install pytest diff --git a/data-track/week-5/exercise_2/Dockerfile b/data-track/week-5/exercise_2/Dockerfile index 9218286..000b830 100644 --- a/data-track/week-5/exercise_2/Dockerfile +++ b/data-track/week-5/exercise_2/Dockerfile @@ -10,7 +10,8 @@ WORKDIR /app # Then reorder the instructions so dependency installs are cached # separately from source code changes. -COPY . . +COPY requirements.txt . RUN pip install -r requirements.txt +COPY src/ src/ CMD ["python", "src/pipeline.py"] diff --git a/data-track/week-5/exercise_2/src/pipeline.py b/data-track/week-5/exercise_2/src/pipeline.py index 00254d6..f2c5153 100644 --- a/data-track/week-5/exercise_2/src/pipeline.py +++ b/data-track/week-5/exercise_2/src/pipeline.py @@ -1,5 +1,8 @@ import os -print(2) +print(1) api_key = os.environ.get("API_KEY", "missing") print(f"API key present: {api_key != 'missing'}") + + + From 99d60f86e61bcacf5b8dfb191ae56a9e67c62da8 Mon Sep 17 00:00:00 2001 From: hannahwn Date: Mon, 1 Jun 2026 12:29:40 +0200 Subject: [PATCH 2/4] cicd_again --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 233bcc1..42dceb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,11 +13,13 @@ jobs: # TODO 1: Add a step to set up Python 3.11. # Use: actions/setup-python@v5 with python-version: "3.11" - with: - python-version: "" + with: + python-version: "3.11" # TODO 2: Add a step to install pytest. # Use: pip install pytest + run: pip install pytest # TODO 3: Add a step to run pytest. # Use: pytest -q + run: pytest -q From d9e1a52bece7a910b6e21899817a1a264b1430ba Mon Sep 17 00:00:00 2001 From: hannahwn Date: Mon, 1 Jun 2026 12:38:47 +0200 Subject: [PATCH 3/4] trial2 test --- .github/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42dceb6..6fa39af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,13 +13,17 @@ jobs: # TODO 1: Add a step to set up Python 3.11. # Use: actions/setup-python@v5 with python-version: "3.11" - with: + - uses: actions/setup-python@v5 + with: python-version: "3.11" - # TODO 2: Add a step to install pytest. + # TODO 2: Add a step to install pytest. # Use: pip install pytest - run: pip install pytest + run: pip install pytest # TODO 3: Add a step to run pytest. # Use: pytest -q - run: pytest -q + + + + run: pytest -q From f6de7648a947013ce8b15405445f95d043eb23ac Mon Sep 17 00:00:00 2001 From: hannahwn Date: Mon, 1 Jun 2026 12:46:50 +0200 Subject: [PATCH 4/4] trial3 --- .github/workflows/ci.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fa39af..b46cc9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,16 +14,15 @@ jobs: # TODO 1: Add a step to set up Python 3.11. # Use: actions/setup-python@v5 with python-version: "3.11" - uses: actions/setup-python@v5 - with: - python-version: "3.11" + with: + python-version: "3.11" - # TODO 2: Add a step to install pytest. + # TODO 2: Add a step to install pytest. # Use: pip install pytest - run: pip install pytest + - name: Install pytest + run: pip install pytest # TODO 3: Add a step to run pytest. # Use: pytest -q - - - - run: pytest -q + - name: Run tests + run: pytest -q