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 +