From eeab7170ccd1d34256d31f75d025d04f46137045 Mon Sep 17 00:00:00 2001 From: Geert Kinthaert Date: Thu, 16 Apr 2026 10:49:58 -0400 Subject: [PATCH 1/2] added ci.yaml file --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..96741bb --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: CI # name of workflow + +on: [push] # trigger + +jobs: # jobs + test: + runs-on: ubuntu-latest # runner + steps: + + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install requirements + run: pip install -r 01-ci-lab/requirements.txt + + + - name: Run tests + run: pytest 01-ci-lab + From 29f492e0ff6d00f23e6829a93609c48ea03412a0 Mon Sep 17 00:00:00 2001 From: Geert Kinthaert Date: Fri, 17 Apr 2026 20:54:54 -0400 Subject: [PATCH 2/2] added comments 20260417 --- 01-ci-lab/app/calculator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/01-ci-lab/app/calculator.py b/01-ci-lab/app/calculator.py index 7382287..82a78aa 100644 --- a/01-ci-lab/app/calculator.py +++ b/01-ci-lab/app/calculator.py @@ -1,5 +1,5 @@ def add(a, b): - return a + b + return a + b # returns sum def divide(a, b): - return a / b \ No newline at end of file + return a / b # returns division \ No newline at end of file