From b0170181f02e7f2d3817abaf555ed90bccb0b7c3 Mon Sep 17 00:00:00 2001 From: Eunha <163366251+Eunzth@users.noreply.github.com> Date: Wed, 26 Mar 2025 18:17:28 -0600 Subject: [PATCH 1/2] added a 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 d9661b0a48ae0e2b08c3a8b3335ba43d71b77388 Mon Sep 17 00:00:00 2001 From: Eunha <163366251+Eunzth@users.noreply.github.com> Date: Wed, 26 Mar 2025 18:21:29 -0600 Subject: [PATCH 2/2] Added actions when pr --- .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