From 309f75ab8442b77c3b9ac48e30dcec74b57d9860 Mon Sep 17 00:00:00 2001 From: Eitan971 Date: Sun, 15 Feb 2026 20:55:29 -0500 Subject: [PATCH 1/6] Update lab_1a.py Changed Name --- labs/lab_1/lab_1a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index 9d15ec83..be7d0f40 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -8,7 +8,7 @@ def main(): print("Hello World!") - name = "" # TODO: Insert your name between the double quotes + name = "Eitan Yadgar" # TODO: Insert your name between the double quotes print(f"{name}, Welcome to the CSS course!") From 9e9e75163513e0fa701a17ed967e698598db2b64 Mon Sep 17 00:00:00 2001 From: Eitan971 Date: Mon, 16 Feb 2026 15:21:15 -0500 Subject: [PATCH 2/6] Add comment explaining lab purpose Added a comment to describe the purpose of the lab. --- labs/lab_1/lab_1a.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index be7d0f40..10e7beaa 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -3,6 +3,8 @@ The first lab in the BWSI CSS course. To complete this lab, fill out the variable on line 10 with your name. Then, save the code, add it to the staging area, and commit it to the Git tree. + +This is to simulate a change made on a robot: robot_speed = 5 # m/s """ def main(): From 5b1c3c79c84a57e1f2736f9e6be51f03eb8acdb2 Mon Sep 17 00:00:00 2001 From: Eitan971 Date: Mon, 16 Feb 2026 15:29:43 -0500 Subject: [PATCH 3/6] Change robot speed from 5 m/s to 3 m/s --- labs/lab_1/lab_1a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index 10e7beaa..19df36e9 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -4,7 +4,7 @@ The first lab in the BWSI CSS course. To complete this lab, fill out the variable on line 10 with your name. Then, save the code, add it to the staging area, and commit it to the Git tree. -This is to simulate a change made on a robot: robot_speed = 5 # m/s +This is to simulate a change made on a robot: robot_speed = 3 # m/s """ def main(): From 8df1086c09265da389ea6816bdf5ac0aefe5a013 Mon Sep 17 00:00:00 2001 From: Eitan971 Date: Mon, 16 Feb 2026 15:30:40 -0500 Subject: [PATCH 4/6] Update lab_1a.py --- labs/lab_1/lab_1a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index 10e7beaa..3f9e22d5 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -4,7 +4,7 @@ The first lab in the BWSI CSS course. To complete this lab, fill out the variable on line 10 with your name. Then, save the code, add it to the staging area, and commit it to the Git tree. -This is to simulate a change made on a robot: robot_speed = 5 # m/s +This is to simulate a change made on a robot: robot_speed = 8 # m/s """ def main(): From 2da846882b96289422f8ac6f209264c883d64627 Mon Sep 17 00:00:00 2001 From: Eitan971 Date: Mon, 16 Feb 2026 21:14:31 -0500 Subject: [PATCH 5/6] Update lab_1b.py --- labs/lab_1/lab_1b.py | 1 + 1 file changed, 1 insertion(+) diff --git a/labs/lab_1/lab_1b.py b/labs/lab_1/lab_1b.py index e58dd957..fe9fa0f1 100644 --- a/labs/lab_1/lab_1b.py +++ b/labs/lab_1/lab_1b.py @@ -39,6 +39,7 @@ def simple_calculator(operation: str, num1: float, num2: float) -> float: def main(): + print("HI") print(f"===== Simple Calculator =====") # Ask the user for sample input From 674561621daba60692b32b05baa7c806e34ede9c Mon Sep 17 00:00:00 2001 From: Eitan971 Date: Tue, 17 Feb 2026 20:41:03 -0500 Subject: [PATCH 6/6] Create run_test.yaml --- .github/workflows/run_test.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/run_test.yaml diff --git a/.github/workflows/run_test.yaml b/.github/workflows/run_test.yaml new file mode 100644 index 00000000..c45bcbfc --- /dev/null +++ b/.github/workflows/run_test.yaml @@ -0,0 +1,32 @@ +name: simple_calculator unit test + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with Ruff + run: | + pip install ruff + ruff --format=github --target-version=py310 . + continue-on-error: true + - name: Test with pytest + run: | + coverage run -m pytest tests/tests_1b.py -v -s + - name: Generate Coverage Report + run: | + coverage report -m \ No newline at end of file