From 9c725eea3de7474f758d1f0201e0f702f1af4ecd Mon Sep 17 00:00:00 2001 From: luxferre Date: Mon, 15 Jun 2026 09:47:27 +0100 Subject: [PATCH] ci: lint and test in ci --- .forgejo/workflows/publish.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..05508e0 --- /dev/null +++ b/.forgejo/workflows/publish.yaml @@ -0,0 +1,25 @@ +--- +name: ci +on: + push: + branches: + - main + +jobs: + lint_and_test: + runs-on: docker + continue-on-error: true + container: + image: ghcr.io/astral-sh/uv:alpine + steps: + - run: apk add --no-cache nodejs npm git + - uses: actions/checkout@v4 + with: + submodules: true + - run: uv python install # Gets Python version from pyproject.toml + - run: uv sync + - run: uv run ruff check + - run: uv run ruff format + - run: uv run pytest test + env: + ENVIRONMENT: testing