From beb57f79985d9bb9b6b43e578285909c8505b08e Mon Sep 17 00:00:00 2001 From: Jarred Wilson Date: Fri, 16 Aug 2024 19:55:52 +0000 Subject: [PATCH] Add Github Action for unit tests --- .github/workflows/unit.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/unit.yml diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml new file mode 100644 index 0000000..f78d2ea --- /dev/null +++ b/.github/workflows/unit.yml @@ -0,0 +1,27 @@ +name: Run Pytest +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: +jobs: + unit-test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest psutil + - name: Run Pytest + run: | + pytest -v +