From 13c09011c221cb6c25740a3b02cf412ab5681c62 Mon Sep 17 00:00:00 2001 From: bisscotti Date: Fri, 27 Dec 2024 17:53:02 +0600 Subject: [PATCH] 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