From 0051aacdc5c1e9d2d2090d6da6c8740c8f32f906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=C5=9Aliwi=C5=84ski?= Date: Thu, 27 Aug 2026 16:41:44 +0200 Subject: [PATCH] Add actionlint to pre-commit - closes #1414 --- .github/workflows/dockerised-postgres.yml | 3 +-- .github/workflows/tests.yml | 11 ----------- .pre-commit-config.yaml | 6 ++++++ newsfragments/1414.misc.rst | 1 + 4 files changed, 8 insertions(+), 13 deletions(-) create mode 100644 newsfragments/1414.misc.rst diff --git a/.github/workflows/dockerised-postgres.yml b/.github/workflows/dockerised-postgres.yml index 37589867..bae8c633 100644 --- a/.github/workflows/dockerised-postgres.yml +++ b/.github/workflows/dockerised-postgres.yml @@ -26,7 +26,6 @@ jobs: matrix: python-version: ${{ fromJSON(inputs.python-versions) }} env: - OS: ${{ inputs.os }} PYTHON: ${{ matrix.python-version }} POSTGRES: ${{ inputs.postgresql }} # Service containers to run with `container-job` @@ -74,6 +73,6 @@ jobs: with: token: ${{ secrets.codecov_token }} flags: unittests - env_vars: OS,PYTHON + env_vars: PYTHON fail_ci_if_error: false files: coverage-docker.xml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 58869a9f..e326e9a8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,6 @@ jobs: postgresql_async_extra: permissions: contents: read - actions: write uses: ./.github/workflows/async-postgres.yml with: postgresql: 18 @@ -27,7 +26,6 @@ jobs: windows_postgres_async_extra: permissions: contents: read - actions: write uses: ./.github/workflows/async-postgres.yml with: postgresql: 17 @@ -37,7 +35,6 @@ jobs: needs: [postgresql_18] permissions: contents: read - actions: write uses: ./.github/workflows/oldest-postgres.yml secrets: codecov_token: ${{ secrets.CODECOV_TOKEN }} @@ -45,7 +42,6 @@ jobs: needs: [postgresql_18] permissions: contents: read - actions: write uses: ./.github/workflows/single-postgres.yml with: postgresql: 17 @@ -56,7 +52,6 @@ jobs: needs: [postgresql_17] permissions: contents: read - actions: write uses: ./.github/workflows/single-postgres.yml with: postgresql: 16 @@ -67,7 +62,6 @@ jobs: needs: [postgresql_16] permissions: contents: read - actions: write uses: ./.github/workflows/single-postgres.yml with: postgresql: 15 @@ -78,7 +72,6 @@ jobs: needs: [postgresql_15] permissions: contents: read - actions: write uses: ./.github/workflows/single-postgres.yml with: postgresql: 14 @@ -89,7 +82,6 @@ jobs: needs: [postgresql_18] permissions: contents: read - actions: write uses: ./.github/workflows/single-postgres.yml with: postgresql: 18 @@ -101,7 +93,6 @@ jobs: needs: [postgresql_17, macos_postgres_18] permissions: contents: read - actions: write uses: ./.github/workflows/single-postgres.yml with: postgresql: 17 @@ -113,7 +104,6 @@ jobs: needs: [postgresql_16, macos_postgres_17] permissions: contents: read - actions: write uses: ./.github/workflows/single-postgres.yml with: postgresql: 16 @@ -125,7 +115,6 @@ jobs: needs: [postgresql_17] permissions: contents: read - actions: write uses: ./.github/workflows/single-postgres-windows.yml with: postgresql: 17 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index be4300a9..867217fc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,6 +35,7 @@ repos: rev: v1.29.0 hooks: - id: zizmor + args: [--no-progress, --fix] - repo: https://github.com/tox-dev/pyproject-fmt rev: v2.28.1 @@ -52,6 +53,11 @@ repos: hooks: - id: check-python-version-consistency + - repo: https://github.com/rhysd/actionlint + rev: v1.7.12 + hooks: + - id: actionlint + - repo: local hooks: - id: uv-sync diff --git a/newsfragments/1414.misc.rst b/newsfragments/1414.misc.rst new file mode 100644 index 00000000..058a2a8b --- /dev/null +++ b/newsfragments/1414.misc.rst @@ -0,0 +1 @@ +Add actionlint to pre-commit