diff --git a/.github/workflows/ruff-version.yml b/.github/workflows/align-versions.yml similarity index 68% rename from .github/workflows/ruff-version.yml rename to .github/workflows/align-versions.yml index a4f8b2617..0f2d09235 100644 --- a/.github/workflows/ruff-version.yml +++ b/.github/workflows/align-versions.yml @@ -1,19 +1,27 @@ -name: ruff +name: align versions on: pull_request: paths: - "{{cookiecutter.project_slug}}/requirements/local.txt" + - "{{cookiecutter.project_slug}}/compose/local/node/Dockerfile" permissions: contents: write pull-requests: write jobs: - version: + run: runs-on: ubuntu-latest env: GH_PAT: ${{ secrets.GH_PAT }} + + strategy: + fail-fast: false + matrix: + script: + - scripts/ruff_version.py + - scripts/node_version.py steps: - name: Checkout with token uses: actions/checkout@v4 @@ -30,8 +38,8 @@ jobs: - uses: astral-sh/setup-uv@v5 - - run: uv run scripts/ruff_version.py + - run: uv run ${{ matrix.script }} - uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: Align Ruff versions + commit_message: Align versions diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 87c828ba1..9cb8e4b36 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -53,14 +53,6 @@ repos: hooks: - id: pyproject-fmt - - repo: local - hooks: - - id: node-version-checker - name: node-version-checker - entry: python scripts/node_version.py - language: python - files: . - ci: autoupdate_schedule: weekly skip: []