From e33e8423e53a11be2013756f4eb2cab77f73227b Mon Sep 17 00:00:00 2001 From: ev4yu Date: Mon, 16 Feb 2026 22:21:28 -0500 Subject: [PATCH 1/5] entered my 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..6b35a58a 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 = "Eva Yu" # TODO: Insert your name between the double quotes print(f"{name}, Welcome to the CSS course!") From 6c96a72d8f6ea10ce5329dd07de8c92da68c0416 Mon Sep 17 00:00:00 2001 From: ev4yu Date: Mon, 16 Feb 2026 22:29:21 -0500 Subject: [PATCH 2/5] Add comment for robot speed variable Added a comment to describe the robot speed variable. --- 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 6b35a58a..012c03e0 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 667c41f608a1877a98c6833a6ccba6fbb62ae3cb Mon Sep 17 00:00:00 2001 From: ev4yu Date: Mon, 16 Feb 2026 22:37:54 -0500 Subject: [PATCH 3/5] 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 012c03e0..1508c1de 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 d4d1ff9c5c32b107780c9e13275f3728ed4468ab Mon Sep 17 00:00:00 2001 From: ev4yu Date: Mon, 16 Feb 2026 22:39:24 -0500 Subject: [PATCH 4/5] changed speed --- 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 012c03e0..4a2f5817 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 435f0c7d4cda9efc5e587d41dc18eaa6cf77bb0a Mon Sep 17 00:00:00 2001 From: ev4yu Date: Tue, 17 Feb 2026 20:26:25 -0500 Subject: [PATCH 5/5] testing button testing button --- github/workflows/run_test.yml | 32 +++++++++++++++++++++++++++++++ tests/{tests_1b.py => test_1b.py} | 0 2 files changed, 32 insertions(+) create mode 100644 github/workflows/run_test.yml rename tests/{tests_1b.py => test_1b.py} (100%) diff --git a/github/workflows/run_test.yml b/github/workflows/run_test.yml new file mode 100644 index 00000000..c45bcbfc --- /dev/null +++ b/github/workflows/run_test.yml @@ -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 diff --git a/tests/tests_1b.py b/tests/test_1b.py similarity index 100% rename from tests/tests_1b.py rename to tests/test_1b.py