From 65b3edda1c7ffb2ef71f222b7aa00d0751334b15 Mon Sep 17 00:00:00 2001 From: Matteo Rosati Date: Thu, 23 Apr 2026 20:52:15 +0200 Subject: [PATCH] add pytest workflow --- .gitea/workflows/pytest.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/pytest.yaml diff --git a/.gitea/workflows/pytest.yaml b/.gitea/workflows/pytest.yaml new file mode 100644 index 0000000..4b4a8e2 --- /dev/null +++ b/.gitea/workflows/pytest.yaml @@ -0,0 +1,28 @@ +name: pytest + +on: + push: + branches: + - main + pull_request: + +jobs: + pytest: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install uv + run: | + curl -Ls https://astral.sh/uv/install.sh | sh + echo "$HOME/.local/bin" >> $GITHUB_PATH + + - name: Sync dependencies + run: | + uv sync --group dev + + - name: Run pytest + run: | + uv run pytest -q