From 044be7bc69e931f39156971c184eed454a522898 Mon Sep 17 00:00:00 2001 From: Caitlin Adams <25995927+caitlinadams@users.noreply.github.com> Date: Thu, 9 Jan 2025 10:59:49 +1100 Subject: [PATCH] Create run-pytest.yml --- .github/workflows/run-pytest.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/run-pytest.yml diff --git a/.github/workflows/run-pytest.yml b/.github/workflows/run-pytest.yml new file mode 100644 index 0000000..3029095 --- /dev/null +++ b/.github/workflows/run-pytest.yml @@ -0,0 +1,21 @@ +name: Run Tests with Pytest + +on: + pull_request: + branches: [main] + +jobs: + create-environment: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: mamba-org/setup-micromamba@v2.0.3 + with: + generate-run-shell: true + environment-name: test-env + create-args: >- + python=3.10 + pytest + - shell: micromamba-shell {0} + - run: | + pytest --version