From d0d678849f0c239892917b17add2651d96c1d213 Mon Sep 17 00:00:00 2001 From: rishinarayan0303-ai Date: Mon, 23 Feb 2026 12:25:30 -0500 Subject: [PATCH 1/4] 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 9d15ec83..b23b4f68 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 = "Rishi Nandgiri" # TODO: Insert your name between the double quotes print(f"{name}, Welcome to the CSS course!") From 1fdf7e59cbd1bf1e2bedfea96e4e9881538c3352 Mon Sep 17 00:00:00 2001 From: rishinarayan0303-ai Date: Mon, 23 Feb 2026 12:34:58 -0500 Subject: [PATCH 2/4] Update lab_1a.py New intro line --- 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 b23b4f68..85f23fa8 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -11,6 +11,6 @@ def main(): name = "Rishi Nandgiri" # TODO: Insert your name between the double quotes print(f"{name}, Welcome to the CSS course!") - + print(f"{name} is very happy to see you") if __name__ == "__main__": main() From 42c3e2a0e056b1e855035a099f9fe227adc19a9b Mon Sep 17 00:00:00 2001 From: rishinarayan0303-ai Date: Mon, 23 Feb 2026 12:45:13 -0500 Subject: [PATCH 3/4] Adding comment about robot speed variable Added a comment explaining the purpose of the variable --- 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 85f23fa8..94dd3dda 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -1,6 +1,6 @@ """ lab_1a.py - +This is to simulate a change made on a robot: robot_speed = 5 # m/s 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. """ From 90edeb1673f9acba30c64ba11b72905ed73e167f Mon Sep 17 00:00:00 2001 From: rishinarayan0303-ai Date: Mon, 23 Feb 2026 21:27:26 -0500 Subject: [PATCH 4/4] add unit tests for simple_calc --- .github/workflows/run_test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/run_test.yml 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