@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user