diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cc1da1c4..886e6a26 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,6 +8,10 @@ on: branches: - main +concurrency: + group: ci-main-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + env: PYTEST_ADDOPTS: "--color=yes" diff --git a/tox.ini b/tox.ini index d9ce1c6d..85f996bd 100644 --- a/tox.ini +++ b/tox.ini @@ -53,7 +53,7 @@ deps = ruff==0.9.5 mypy==1.15.0 commands = - ruff check {posargs:pytest_django pytest_django_test tests} + ruff check --diff {posargs:pytest_django pytest_django_test tests} ruff format --quiet --diff {posargs:pytest_django pytest_django_test tests} mypy {posargs:pytest_django pytest_django_test tests}