From 6f00b75b4ead5436752a4325661be59b02606aed Mon Sep 17 00:00:00 2001 From: gloriaisaaldeg2 Date: Sat, 20 Sep 2025 14:37:14 +0200 Subject: [PATCH 1/2] added a GitHub action to run unit tests automatically on code push --- .github/workflows/unittests.yaml | 16 ++++++++++++++++ .idea/.gitignore | 3 +++ .../add-automated-tests-off-platform-project.iml | 8 ++++++++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 7 +++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ 7 files changed, 54 insertions(+) create mode 100644 .github/workflows/unittests.yaml create mode 100644 .idea/.gitignore create mode 100644 .idea/add-automated-tests-off-platform-project.iml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.github/workflows/unittests.yaml b/.github/workflows/unittests.yaml new file mode 100644 index 00000000..f54f616b --- /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/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..26d33521 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/add-automated-tests-off-platform-project.iml b/.idea/add-automated-tests-off-platform-project.iml new file mode 100644 index 00000000..dded9f1c --- /dev/null +++ b/.idea/add-automated-tests-off-platform-project.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 00000000..105ce2da --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..d3e20d2b --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..fa11fef8 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file From 08dd96aba1006e69e0ed2b8ffe633fe28642574b Mon Sep 17 00:00:00 2001 From: gloriaisaaldeg2 Date: Sat, 20 Sep 2025 14:44:28 +0200 Subject: [PATCH 2/2] Array of triggers updated to add pull request --- .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 f54f616b..44ccfa31 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