From 2d958ba520891fa37bae8e8340dd0b8511b63d5a Mon Sep 17 00:00:00 2001 From: luxferre Date: Mon, 8 Jun 2026 12:31:42 +0100 Subject: [PATCH] ci: forgejo publish yaml Configured to run Ruff and tests --- .forgejo/workflows/publish.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .forgejo/workflows/publish.yaml diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml new file mode 100644 index 0000000..4069cb3 --- /dev/null +++ b/.forgejo/workflows/publish.yaml @@ -0,0 +1,23 @@ +--- +name: ci +on: + push: + branches: + - main + +jobs: + build_and_publish: + runs-on: docker + container: + image: ghcr.io/catthehacker/ubuntu:runner-latest + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/ruff-action@v3 + - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 + with: + version: "0.11.19" + - run: uv python install # Gets Python version from pyproject.toml + - run: uv sync + - run: uv run pytest test + env: + ENVIRONMENT: testing