From 3e64918d65dd7a62090fec9e808a10efd9a0d0bd Mon Sep 17 00:00:00 2001 From: Stuart <41457780+smp242@users.noreply.github.com> Date: Sun, 30 Nov 2025 13:19:03 -0500 Subject: [PATCH 1/2] added github action to run unit tests automatically on code push --- .github/workflows/unittests.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/unittests.yaml diff --git a/.github/workflows/unittests.yaml b/.github/workflows/unittests.yaml new file mode 100644 index 00000000..30cfa6dd --- /dev/null +++ b/.github/workflows/unittests.yaml @@ -0,0 +1,16 @@ +name: Continuous Integration +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.12.0 + architecture: x64 + - name: Install dependencies + run: pip install -r requirements.txt + - name: Run Tests + run: python -m pytest \ No newline at end of file From 4f1bf755b7b75a5eb60ae422277e84a4f67a1d97 Mon Sep 17 00:00:00 2001 From: Stuart <41457780+smp242@users.noreply.github.com> Date: Sun, 30 Nov 2025 13:28:43 -0500 Subject: [PATCH 2/2] add pull request to unittests.yaml --- .github/workflows/unittests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unittests.yaml b/.github/workflows/unittests.yaml index 30cfa6dd..6eed99ba 100644 --- a/.github/workflows/unittests.yaml +++ b/.github/workflows/unittests.yaml @@ -1,5 +1,5 @@ name: Continuous Integration -on: [push] +on: [push, pull_request] jobs: build: runs-on: ubuntu-latest