From a954532ed9cb65443d33546ca4cb3f55b3974698 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 18 Oct 2023 20:38:58 +0200 Subject: [PATCH] DRAFT: GitHub Action to run pytest Related to #332 --- .github/workflows/pytest.yml | 13 +++++++++++++ 1 file changed, 13 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..d0e9f328 --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,13 @@ +name: pytest +on: [pull_request, push] +jobs: + pytest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: {python-version: 3.x} + - run: pip install pytest + - run: pip install -r requirements.txt || pip install --editable . || pip install . || true + - run: pytest . + - run: pytest --doctest-modules . || true