diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 00000000..7327778e --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,24 @@ +name: pytest + +on: + pull_request: + push: + branches: [main] + +jobs: + pytest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + cache: 'pip' # caching pip dependencies + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install . + - name: Run tests + run: | + python -m pytest