From cf258a9c5b8df48dc975fb0a29b0b68c584e4b8c Mon Sep 17 00:00:00 2001 From: Taahirahbz Date: Tue, 19 Aug 2025 15:10:41 +0400 Subject: [PATCH 1/2] added a GitHub action to run unit tests automatically on code push --- .github/workflows/unitests.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/unitests.yaml diff --git a/.github/workflows/unitests.yaml b/.github/workflows/unitests.yaml new file mode 100644 index 00000000..5a72af72 --- /dev/null +++ b/.github/workflows/unitests.yaml @@ -0,0 +1,17 @@ +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 + From 043aaa2b8d0cb93eec2470a75043549c9ece78dc Mon Sep 17 00:00:00 2001 From: Taahirahbz Date: Tue, 19 Aug 2025 15:14:34 +0400 Subject: [PATCH 2/2] Added PR on ON to see changes --- .github/workflows/unitests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unitests.yaml b/.github/workflows/unitests.yaml index 5a72af72..7873b33f 100644 --- a/.github/workflows/unitests.yaml +++ b/.github/workflows/unitests.yaml @@ -1,5 +1,5 @@ name: Continuous Integration -on: [push] +on: [push, pull_request] jobs: build: runs-on: ubuntu-latest