From fc4f6a7913b6992121d344293d72b8b7533f76e1 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sat, 21 Mar 2026 13:31:15 +0000 Subject: [PATCH] feat(ci): add CI workflow --- .gitea/workflows/ci.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..f56bada --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,37 @@ +name: CI + +on: + pull_request: + types: + - opened + - edited + - synchronize + - reopened + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + + - name: Check out repository code + uses: actions/checkout@v6.0.2 + + - name: Setup Python + uses: actions/setup-python@v6 + with: + python-version: "3.14" + + - name: uv cache + uses: actions/cache@v5 + with: + path: /tmp/.uv-cache + key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} + restore-keys: | + uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} + uv-${{ runner.os }} + + - name: Install dependencies + run: uv sync + + - name: Minimize uv cache + run: uv cache prune --ci