From 04f74ec4a28a9cf5faa52255d178172211dfba89 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 26 Jul 2024 21:32:12 +0200 Subject: [PATCH] Add GitHub Action to run pytest --- .github/workflows/pytest.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pytest.yml diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 00000000..cb466aba --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,22 @@ +name: pytest +on: + push: + pull_request: + workflow_dispatch: +jobs: + pytest: + strategy: + fail-fast: false + matrix: # https://github.com/actions/python-versions/releases + python-version: ["3.8", "3.10", "3.12", "3.13"] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + allow-prereleases: true + - run: pip install --upgrade pip setuptools + - run: pip install pytest + - run: pip install --editable . + - run: pytest