From a7b312ce5d017c943f90656632a68e00f8ad9e2a Mon Sep 17 00:00:00 2001 From: Okechukwu Egeruoh <39450490+Chukwu12@users.noreply.github.com> Date: Wed, 23 Sep 2026 14:32:36 +0000 Subject: [PATCH 1/2] added a GitHub action to run unit tests automatically on code push --- .github/workflows/ unittests.yaml | 16 ++++++++++++++++ add-automated-tests-off-platform-project | 1 + 2 files changed, 17 insertions(+) create mode 100644 .github/workflows/ unittests.yaml create mode 160000 add-automated-tests-off-platform-project 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 diff --git a/add-automated-tests-off-platform-project b/add-automated-tests-off-platform-project new file mode 160000 index 00000000..4362348a --- /dev/null +++ b/add-automated-tests-off-platform-project @@ -0,0 +1 @@ +Subproject commit 4362348aa5d17f9f5503a9a43d5300f38160572f From ce12cc2c6369a22b659a47bef487b82ae2da7c6f Mon Sep 17 00:00:00 2001 From: Okechukwu Egeruoh <39450490+Chukwu12@users.noreply.github.com> Date: Wed, 23 Sep 2026 15:32:55 +0000 Subject: [PATCH 2/2] updated yaml to include push and pull requests --- .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