From a81aaf316f9641fce43ce593f6c0363afbac95e6 Mon Sep 17 00:00:00 2001 From: Samueldalebigelow Date: Sat, 21 Mar 2026 12:22:28 -0500 Subject: [PATCH 1/3] added a test for simple_calcuator --- .github/workflows/run_test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..0f7477a8 --- /dev/null +++ b/.github/workflows/run_test.yml @@ -0,0 +1,28 @@ +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 From 112a27c2974bd35299419df2933580e55b4150e3 Mon Sep 17 00:00:00 2001 From: Samueldalebigelow Date: Sat, 21 Mar 2026 12:32:39 -0500 Subject: [PATCH 2/3] fixed problem with on: in test/simple_calcuator added a the name "simple_calculator unit test" and added the on: [push] to this test --- .github/workflows/run_test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/run_test.yml b/.github/workflows/run_test.yml index 0f7477a8..629e0f61 100644 --- a/.github/workflows/run_test.yml +++ b/.github/workflows/run_test.yml @@ -1,3 +1,8 @@ +name: +"simple_calculator unit test" + +on: [push] + jobs: build: runs-on: ubuntu-latest From 1f63c3775b665ff4ffc2f9dea1972e1a88954e8d Mon Sep 17 00:00:00 2001 From: Samueldalebigelow Date: Sat, 21 Mar 2026 12:46:14 -0500 Subject: [PATCH 3/3] fixed line 2 of the code --- .github/workflows/run_test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/run_test.yml b/.github/workflows/run_test.yml index 629e0f61..f191635f 100644 --- a/.github/workflows/run_test.yml +++ b/.github/workflows/run_test.yml @@ -1,5 +1,4 @@ -name: -"simple_calculator unit test" +name: "simple_calculator unit test" on: [push]