From fe62d13d3c3ccf8844f77ee23db319cac19c080b Mon Sep 17 00:00:00 2001 From: Jonas Braathen Date: Sun, 27 Sep 2026 17:25:09 +0200 Subject: [PATCH] ci: add Gitea checks workflow running the test suite --- .gitea/workflows/checks.yaml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/checks.yaml diff --git a/.gitea/workflows/checks.yaml b/.gitea/workflows/checks.yaml new file mode 100644 index 0000000..872bd14 --- /dev/null +++ b/.gitea/workflows/checks.yaml @@ -0,0 +1,37 @@ +name: checks + +# Checks only, nothing here deploys +on: + push: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + checks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + # bind9-utils provides named-checkzone, used by the zone sync tests. + - name: Install system dependencies + run: | + SUDO=$(command -v sudo || true) + $SUDO apt-get update + $SUDO apt-get install -y --no-install-recommends bind9-utils + + - name: Install mise + run: | + curl -fsSL https://mise.run | sh + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + + - name: Install pinned tools + run: mise install + + - name: Install Python dependencies + run: mise exec -- uv sync --locked --no-group prod + + - name: Unit tests + run: mise exec -- uv run --no-sync pytest