From 031d61e1fe62c6538ac2819e57a57f50a121c0d3 Mon Sep 17 00:00:00 2001 From: Jonas Braathen Date: Tue, 4 Aug 2026 03:51:54 +0200 Subject: [PATCH] dnscms: add gitea workflow --- .gitea/workflows/dnscms.yaml | 27 +++++++++++++++++++++++++++ dnscms/pyproject.toml | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/dnscms.yaml diff --git a/.gitea/workflows/dnscms.yaml b/.gitea/workflows/dnscms.yaml new file mode 100644 index 0000000..b8a0fd7 --- /dev/null +++ b/.gitea/workflows/dnscms.yaml @@ -0,0 +1,27 @@ +name: dnscms + +on: + push: + paths: + - "dnscms/**" + - ".gitea/workflows/dnscms.yaml" + pull_request: + paths: + - "dnscms/**" + - ".gitea/workflows/dnscms.yaml" + +defaults: + run: + working-directory: dnscms + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/setup-uv@v7 + - run: uv sync --locked + - run: uv run ruff check . + - run: uv run ruff format --check . + - run: uv run manage.py makemigrations --check --dry-run --settings=dnscms.settings.test + - run: uv run pytest diff --git a/dnscms/pyproject.toml b/dnscms/pyproject.toml index d308ed7..05d194e 100644 --- a/dnscms/pyproject.toml +++ b/dnscms/pyproject.toml @@ -33,11 +33,11 @@ build-backend = "hatchling.build" [tool.ruff] line-length = 99 +exclude = ["**/migrations/*.py"] [tool.ruff.lint] select = ["F", "E", "W", "Q", "UP", "DJ"] ignore = [] -exclude = ["**/migrations/*.py"] [tool.pytest.ini_options] DJANGO_SETTINGS_MODULE = "dnscms.settings.test"