From 7399c010fd703d93510c9e0fbba9ce3228fead27 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 5 Dec 2024 13:54:41 -0500 Subject: [PATCH] Add gitea workflow to run offline tests --- .gitea/workflows/test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..eb1410e --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,20 @@ +name: Run Unit Tests +on: + push: + +jobs: + test-package: + strategy: + matrix: + python-version: + - "3.11" + - "3.12" + - "3.13" + runs-on: ubuntu-latest + container: ghcr.io/astral-sh/uv:0.5-python${{ matrix.python-version }}-bookworm-slim + steps: + - uses: actions/checkout@v4 + - name: Install the project + run: uv sync --all-extras --dev + - name: Run tests + run: uv run pytest