From 74601e0bbb3a382300267be640d2287a170e7cda Mon Sep 17 00:00:00 2001 From: Filip Riha Date: Fri, 20 Nov 2026 13:27:01 +0100 Subject: [PATCH 1/6] Add more metadata --- pyproject.toml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2890b05..5f209b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,25 @@ [project] name = "bench" version = "0.1.0" -description = "A lightweight Python benchmarking framework" -requires-python = ">=3.12" +description = "A Python benchmarking framework and command-line tool" +maintainers = [ + { name = "Filip Říha", email = "riha.fina@gmail.com" }, + { name = "Filip Křikava", email = "krikava@gmail.com" }, +] + +readme = "README.md" license = "MIT" license-files = ["LICENSE"] + +requires-python = ">=3.12" dependencies = [ "cattrs>=26.1.0", "rich", ] +[project.urls] +Homepage = "https://github.com/PRL-PRG/bench" + # ---------- # Build # ---------- From fd91cfce657325aa08fe9c68664368f9bdc73d31 Mon Sep 17 00:00:00 2001 From: Filip Riha Date: Fri, 20 Nov 2026 15:00:03 +0100 Subject: [PATCH 2/6] CI --- .github/workflows/ci.yml | 56 +++----------------- .github/workflows/ci_main.yml | 40 ++++++++++++++ .github/workflows/publish.yml | 87 +++++++++++++++++++++++++++++++ .github/workflows/tag_version.yml | 48 +++++++++++++++++ .github/workflows/test.yml | 41 +++++++++++++++ pyproject.toml | 1 + 6 files changed, 223 insertions(+), 50 deletions(-) create mode 100644 .github/workflows/ci_main.yml create mode 100644 .github/workflows/publish.yml create mode 100644 .github/workflows/tag_version.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63d1d76..0534b6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,73 +1,29 @@ name: CI on: - push: - branches: [main] pull_request: - workflow_dispatch: concurrency: group: ci-${{ github.ref }} cancel-in-progress: true jobs: - check: - name: Check + test: + name: Test and coverage runs-on: ubuntu-latest - permissions: - contents: write # publishes the coverage badge to the `badges` branch steps: - - uses: actions/checkout@v5 - - - uses: astral-sh/setup-uv@v6 - with: - enable-cache: true - - - name: Lint, typecheck, test - run: make check - - - name: Test summary - if: ${{ !cancelled() && hashFiles('pytest.xml') != '' }} - uses: test-summary/action@v2 - with: - paths: pytest.xml - show: fail, skip + - uses: ./.github/workflows/test.yml - name: Coverage summary if: ${{ !cancelled() && hashFiles('.coverage') != '' }} run: | uv run coverage report --format=markdown >> "$GITHUB_STEP_SUMMARY" + echo "coverage=$(uv run coverage report --format=total)" >> "$GITHUB_OUTPUT" uv run coverage html - - name: Upload coverage HTML report - if: ${{ !cancelled() && hashFiles('.coverage') != '' }} + - name: Upload coverage + if: ${{ !cancelled() && hashFiles('htmlcov/') != '' }} uses: actions/upload-artifact@v4 with: name: coverage-html path: htmlcov/ - - - name: Coverage badge JSON - if: ${{ !cancelled() && github.event_name == 'push' && github.ref == 'refs/heads/main' && hashFiles('.coverage') != '' }} - run: | - pct=$(uv run coverage report --format=total) - if [ "$pct" -ge 90 ]; then color=brightgreen - elif [ "$pct" -ge 75 ]; then color=green - elif [ "$pct" -ge 60 ]; then color=yellow - else color=red - fi - mkdir -p badge - printf '{"schemaVersion":1,"label":"coverage","message":"%s%%","color":"%s"}\n' \ - "$pct" "$color" > badge/coverage.json - - - name: Publish coverage badge - if: ${{ !cancelled() && github.event_name == 'push' && github.ref == 'refs/heads/main' && hashFiles('badge/coverage.json') != '' }} - uses: peaceiris/actions-gh-pages@v4 - with: - github_token: ${{ github.token }} - publish_branch: badges - publish_dir: badge - force_orphan: true - - - name: Format - if: ${{ !cancelled() }} - run: make check-format diff --git a/.github/workflows/ci_main.yml b/.github/workflows/ci_main.yml new file mode 100644 index 0000000..79a3ac1 --- /dev/null +++ b/.github/workflows/ci_main.yml @@ -0,0 +1,40 @@ +name: CI [main branch] + +on: + push: + branches: [main] + +concurrency: + group: ci-main-${{ github.ref }} + cancel-in-progress: true + +jobs: + ci: + uses: ./.github/workflows/ci.yml + + publish-coverage: + name: Test and coverage + runs-on: ubuntu-latest + needs: ci + permissions: + contents: write # publishes the coverage badge to the `badges` branch + steps: + - name: Coverage badge JSON + run: | + if [ "$pct" -ge 90 ]; then color=brightgreen + elif [ "$pct" -ge 75 ]; then color=green + elif [ "$pct" -ge 60 ]; then color=yellow + else color=red + fi + mkdir -p badge + printf '{"schemaVersion":1,"label":"coverage","message":"%s%%","color":"%s"}\n' \ + "${{ needs.ci.outputs.coverage }}" "$color" > badge/coverage.json + + - name: Publish coverage badge + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ github.token }} + publish_branch: badges + publish_dir: badge + force_orphan: true + diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a5ce6c9 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,87 @@ +name: Publish + +on: + workflow_dispatch: + inputs: + version: + description: Which version to release (or the latest) + type: string + default: latest + + +concurrency: + group: publish + cancel-in-progress: false + +jobs: + tag: + name: Resolve latest tag + runs-on: ubuntu-latest + outputs: + tag: ${{ steps.latest.outputs.tag }} + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - name: Find latest vX.Y.Z tag + id: latest + run: | + tag=$(git tag --list 'v*' --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -n1) + [ -n "$tag" ] || { echo "No vX.Y.Z tag found"; exit 1; } + echo "tag=$tag" >> "$GITHUB_OUTPUT" + + ci: + name: CI + needs: tag + uses: ./.github/workflows/ci.yml + with: + ref: ${{ needs.tag.outputs.tag }} + permissions: + contents: write # requested by ci.yml's job; its badge step is skipped outside pushes + + pypi: + name: PyPI + needs: [tag, ci] + runs-on: ubuntu-latest + environment: pypi + permissions: + id-token: write # PyPI trusted publishing + steps: + - uses: actions/checkout@v5 + with: + ref: ${{ needs.tag.outputs.tag }} + + - uses: astral-sh/setup-uv@v6 + + - run: uv build + + - uses: actions/upload-artifact@v4 + with: + name: dist + path: dist/ + + - run: uv publish + + github-release: + name: GitHub release + needs: [tag, pypi] + runs-on: ubuntu-latest + permissions: + contents: write # create the release + steps: + - uses: actions/download-artifact@v4 + with: + name: dist + path: dist/ + + - name: Create release + env: + GH_TOKEN: ${{ github.token }} + run: | + gh release create "${{ needs.tag.outputs.tag }}" \ + --repo "${{ github.repository }}" \ + --verify-tag \ + --generate-notes \ + dist/* + diff --git a/.github/workflows/tag_version.yml b/.github/workflows/tag_version.yml new file mode 100644 index 0000000..68da705 --- /dev/null +++ b/.github/workflows/tag_version.yml @@ -0,0 +1,48 @@ +name: Bump version + +on: + workflow_dispatch: + inputs: + bump: + description: Version component to bump + type: choice + options: [patch, minor, major] + +concurrency: + group: release + cancel-in-progress: false + +jobs: + ci: + name: CI + if: github.ref == 'refs/heads/main' + uses: ./.github/workflows/ci.yml + permissions: + contents: write # requested by ci.yml's job + + bump: + name: Bump version + needs: ci + runs-on: ubuntu-latest + permissions: + contents: write # push the release commit and tag + steps: + - uses: actions/checkout@v5 + + - uses: astral-sh/setup-uv@v6 + + - name: Bump version + id: version + run: | + uv version --bump ${{ inputs.bump }} + echo "tag=v$(uv version --short)" >> "$GITHUB_OUTPUT" + + - name: Commit and tag + run: | + git config user.name "github-actions[bot]" + git config user.email "41898283+github-actions[bot]@users.noreply.github.com" + git commit -am "Bump version to ${{ steps.version.outputs.tag }}" + + - name: Push + run: git push --atomic origin HEAD:main "${{ steps.version.outputs.tag }}" + diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..79200e7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,41 @@ +name: Test + +on: + workflow_call: + inputs: + ref: + description: Git ref to check out; defaults to the triggering ref + type: string + default: "" + +concurrency: + # When called from another workflow, `github.workflow` is the caller's name, + # keeping that run from cancelling (or being cancelled by) a push-triggered CI run. + group: test-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + with: + ref: ${{ inputs.ref }} + + - uses: astral-sh/setup-uv@v6 + with: + enable-cache: true + + - name: Lint, typecheck, test + run: make check + + - name: Test summary + if: ${{ !cancelled() && hashFiles('pytest.xml') != '' }} + uses: test-summary/action@v2 + with: + paths: pytest.xml + show: fail, skip + + - name: Check format + run: make check-format diff --git a/pyproject.toml b/pyproject.toml index 5f209b3..0fae2ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,6 +62,7 @@ addopts = ["--cov", "--cov-report=term-missing:skip-covered", "--junitxml=pytest [tool.coverage.run] source = ["bench"] branch = true +relative_files = true # CLI and example tests spawn `python -m bench`; without this they contribute nothing. patch = ["subprocess"] From bc6d0a99ff2556f86a849f08a835e92e6cfbabf6 Mon Sep 17 00:00:00 2001 From: Filip Riha Date: Fri, 20 Nov 2026 15:03:48 +0100 Subject: [PATCH 3/6] wf call --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0534b6d..f2ba873 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,7 @@ name: CI on: + workflow_call: pull_request: concurrency: From c0f7374d3f5dc1452b667f95f7464332e69fd535 Mon Sep 17 00:00:00 2001 From: Filip Riha Date: Fri, 20 Nov 2026 15:39:20 +0100 Subject: [PATCH 4/6] v2 --- .github/actions/test/action.yml | 24 ++++++ .github/workflows/ci.yml | 25 ++++++- .github/workflows/ci_main.yml | 5 +- .github/workflows/publish.yml | 75 ++++++++++--------- .../{tag_version.yml => release.yml} | 37 +++++++-- .github/workflows/test.yml | 41 ---------- 6 files changed, 118 insertions(+), 89 deletions(-) create mode 100644 .github/actions/test/action.yml rename .github/workflows/{tag_version.yml => release.yml} (57%) delete mode 100644 .github/workflows/test.yml diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml new file mode 100644 index 0000000..2fb922f --- /dev/null +++ b/.github/actions/test/action.yml @@ -0,0 +1,24 @@ +name: Test +description: Lint, typecheck, test and check formatting + +runs: + using: composite + steps: + - uses: astral-sh/setup-uv@v6 + with: + enable-cache: true + + - name: Lint, typecheck, test + run: make check + shell: bash + + - name: Test summary + if: ${{ !cancelled() && hashFiles('pytest.xml') != '' }} + uses: test-summary/action@v2 + with: + paths: pytest.xml + show: fail, skip + + - name: Check format + run: make check-format + shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2ba873..c518a21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,21 +1,38 @@ name: CI on: - workflow_call: pull_request: + workflow_call: + inputs: + ref: + description: Git ref to check out, defaults to the triggering ref + type: string + default: "" + outputs: + coverage: + value: ${{ jobs.test.outputs.coverage }} concurrency: - group: ci-${{ github.ref }} + # When called from another workflow, `github.workflow` is the caller's name, + # keeping runs called from different workflows on the same ref from cancelling each other. + group: ci-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: test: name: Test and coverage runs-on: ubuntu-latest + outputs: + coverage: ${{ steps.coverage.outputs.coverage }} steps: - - uses: ./.github/workflows/test.yml + - uses: actions/checkout@v5 + with: + ref: ${{ inputs.ref }} + + - uses: ./.github/actions/test - name: Coverage summary + id: coverage if: ${{ !cancelled() && hashFiles('.coverage') != '' }} run: | uv run coverage report --format=markdown >> "$GITHUB_STEP_SUMMARY" @@ -23,7 +40,7 @@ jobs: uv run coverage html - name: Upload coverage - if: ${{ !cancelled() && hashFiles('htmlcov/') != '' }} + if: ${{ !cancelled() && hashFiles('htmlcov/**') != '' }} uses: actions/upload-artifact@v4 with: name: coverage-html diff --git a/.github/workflows/ci_main.yml b/.github/workflows/ci_main.yml index 79a3ac1..2ab21cd 100644 --- a/.github/workflows/ci_main.yml +++ b/.github/workflows/ci_main.yml @@ -13,7 +13,7 @@ jobs: uses: ./.github/workflows/ci.yml publish-coverage: - name: Test and coverage + name: Publish coverage runs-on: ubuntu-latest needs: ci permissions: @@ -21,6 +21,7 @@ jobs: steps: - name: Coverage badge JSON run: | + pct="${{ needs.ci.outputs.coverage }}" if [ "$pct" -ge 90 ]; then color=brightgreen elif [ "$pct" -ge 75 ]; then color=green elif [ "$pct" -ge 60 ]; then color=yellow @@ -28,7 +29,7 @@ jobs: fi mkdir -p badge printf '{"schemaVersion":1,"label":"coverage","message":"%s%%","color":"%s"}\n' \ - "${{ needs.ci.outputs.coverage }}" "$color" > badge/coverage.json + "$pct" "$color" > badge/coverage.json - name: Publish coverage badge uses: peaceiris/actions-gh-pages@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a5ce6c9..16cb0ac 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,56 +1,49 @@ -name: Publish +name: Publish the new version on: - workflow_dispatch: + workflow_call: inputs: version: - description: Which version to release (or the latest) + description: Which version to release type: string - default: latest + required: true + skip_tests: + description: Skip the tests, for callers that already ran them on this version + type: boolean + default: false + workflow_dispatch: + inputs: + version: + description: Which version to release + type: string + required: true concurrency: group: publish cancel-in-progress: false jobs: - tag: - name: Resolve latest tag + check: + name: Check the version release runs-on: ubuntu-latest - outputs: - tag: ${{ steps.latest.outputs.tag }} steps: + # Fails unless the version exists as a tag. - uses: actions/checkout@v5 with: - fetch-depth: 0 - - - name: Find latest vX.Y.Z tag - id: latest - run: | - tag=$(git tag --list 'v*' --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -n1) - [ -n "$tag" ] || { echo "No vX.Y.Z tag found"; exit 1; } - echo "tag=$tag" >> "$GITHUB_OUTPUT" + ref: refs/tags/${{ inputs.version }} - ci: - name: CI - needs: tag - uses: ./.github/workflows/ci.yml - with: - ref: ${{ needs.tag.outputs.tag }} - permissions: - contents: write # requested by ci.yml's job; its badge step is skipped outside pushes + - if: ${{ !inputs.skip_tests }} + uses: ./.github/actions/test - pypi: - name: PyPI - needs: [tag, ci] + build: + name: Build the release + needs: check runs-on: ubuntu-latest - environment: pypi - permissions: - id-token: write # PyPI trusted publishing steps: - uses: actions/checkout@v5 with: - ref: ${{ needs.tag.outputs.tag }} + ref: refs/tags/${{ inputs.version }} - uses: astral-sh/setup-uv@v6 @@ -61,11 +54,26 @@ jobs: name: dist path: dist/ + pypi: + name: PyPI + needs: build + runs-on: ubuntu-latest + environment: pypi + permissions: + id-token: write # PyPI trusted publishing + steps: + - uses: actions/download-artifact@v4 + with: + name: dist + path: dist/ + + - uses: astral-sh/setup-uv@v6 + - run: uv publish github-release: name: GitHub release - needs: [tag, pypi] + needs: build runs-on: ubuntu-latest permissions: contents: write # create the release @@ -79,9 +87,8 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - gh release create "${{ needs.tag.outputs.tag }}" \ + gh release create "${{ inputs.version }}" \ --repo "${{ github.repository }}" \ --verify-tag \ --generate-notes \ dist/* - diff --git a/.github/workflows/tag_version.yml b/.github/workflows/release.yml similarity index 57% rename from .github/workflows/tag_version.yml rename to .github/workflows/release.yml index 68da705..18cec05 100644 --- a/.github/workflows/tag_version.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Bump version +name: Release a new version on: workflow_dispatch: @@ -7,25 +7,39 @@ on: description: Version component to bump type: choice options: [patch, minor, major] + publish: + description: Also publish the new version + type: boolean + default: false concurrency: group: release cancel-in-progress: false jobs: - ci: - name: CI - if: github.ref == 'refs/heads/main' - uses: ./.github/workflows/ci.yml - permissions: - contents: write # requested by ci.yml's job + check: + name: Check the branch and tests + runs-on: ubuntu-latest + steps: + - if: github.ref != 'refs/heads/main' + run: | + echo "::error::This workflow must be run from main, not ${{ github.ref_name }}" + exit 1 + + - uses: actions/checkout@v5 + with: + ref: ${{ github.ref }} + + - uses: ./.github/actions/test bump: name: Bump version - needs: ci + needs: check runs-on: ubuntu-latest permissions: contents: write # push the release commit and tag + outputs: + tag: ${{ steps.version.outputs.tag }} steps: - uses: actions/checkout@v5 @@ -46,3 +60,10 @@ jobs: - name: Push run: git push --atomic origin HEAD:main "${{ steps.version.outputs.tag }}" + publish: + needs: bump + if: inputs.publish + uses: ./.github/workflows/release.yml + with: + version: needs.bump.outputs.tag + diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 79200e7..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Test - -on: - workflow_call: - inputs: - ref: - description: Git ref to check out; defaults to the triggering ref - type: string - default: "" - -concurrency: - # When called from another workflow, `github.workflow` is the caller's name, - # keeping that run from cancelling (or being cancelled by) a push-triggered CI run. - group: test-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - test: - name: Check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - with: - ref: ${{ inputs.ref }} - - - uses: astral-sh/setup-uv@v6 - with: - enable-cache: true - - - name: Lint, typecheck, test - run: make check - - - name: Test summary - if: ${{ !cancelled() && hashFiles('pytest.xml') != '' }} - uses: test-summary/action@v2 - with: - paths: pytest.xml - show: fail, skip - - - name: Check format - run: make check-format From 1946fa86403b2155fadd0ce69dbaffc5847ffbf3 Mon Sep 17 00:00:00 2001 From: Filip Riha Date: Fri, 20 Nov 2026 16:00:42 +0100 Subject: [PATCH 5/6] v3 --- .github/workflows/ci.yml | 3 +++ .github/workflows/ci_main.yml | 5 ++++- .github/workflows/publish.yml | 15 ++++++++++++--- .github/workflows/release.yml | 19 ++++++++++++++----- 4 files changed, 33 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c518a21..1b0dbbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,9 @@ concurrency: group: ci-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: test: name: Test and coverage diff --git a/.github/workflows/ci_main.yml b/.github/workflows/ci_main.yml index 2ab21cd..e49ed5e 100644 --- a/.github/workflows/ci_main.yml +++ b/.github/workflows/ci_main.yml @@ -8,6 +8,9 @@ concurrency: group: ci-main-${{ github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: ci: uses: ./.github/workflows/ci.yml @@ -32,7 +35,7 @@ jobs: "$pct" "$color" > badge/coverage.json - name: Publish coverage badge - uses: peaceiris/actions-gh-pages@v4 + uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0 with: github_token: ${{ github.token }} publish_branch: badges diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 16cb0ac..37be628 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,6 +23,13 @@ concurrency: group: publish cancel-in-progress: false +permissions: + contents: read + +env: + VERSION_TAG: v${{ inputs.version }} + VERSION_REF: refs/tags/v${{ inputs.version }} + jobs: check: name: Check the version release @@ -31,7 +38,9 @@ jobs: # Fails unless the version exists as a tag. - uses: actions/checkout@v5 with: - ref: refs/tags/${{ inputs.version }} + ref: ${{ env.VERSION_REF }} + + # TODO: Make sure the tag is on main - if: ${{ !inputs.skip_tests }} uses: ./.github/actions/test @@ -43,7 +52,7 @@ jobs: steps: - uses: actions/checkout@v5 with: - ref: refs/tags/${{ inputs.version }} + ref: ${{ env.VERSION_REF }} - uses: astral-sh/setup-uv@v6 @@ -87,7 +96,7 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - gh release create "${{ inputs.version }}" \ + gh release create "${{ env.VERSION_TAG }}" \ --repo "${{ github.repository }}" \ --verify-tag \ --generate-notes \ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18cec05..ff1ac8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,9 @@ concurrency: group: release cancel-in-progress: false +permissions: + contents: read + jobs: check: name: Check the branch and tests @@ -27,8 +30,6 @@ jobs: exit 1 - uses: actions/checkout@v5 - with: - ref: ${{ github.ref }} - uses: ./.github/actions/test @@ -39,6 +40,7 @@ jobs: permissions: contents: write # push the release commit and tag outputs: + version: ${{ steps.version.outputs.version }} tag: ${{ steps.version.outputs.tag }} steps: - uses: actions/checkout@v5 @@ -49,13 +51,16 @@ jobs: id: version run: | uv version --bump ${{ inputs.bump }} - echo "tag=v$(uv version --short)" >> "$GITHUB_OUTPUT" + version="$(uv version --short)" + echo "version=$version" >> "$GITHUB_OUTPUT" + echo "tag=v$version" >> "$GITHUB_OUTPUT" - name: Commit and tag run: | git config user.name "github-actions[bot]" git config user.email "41898283+github-actions[bot]@users.noreply.github.com" git commit -am "Bump version to ${{ steps.version.outputs.tag }}" + git tag "${{ steps.version.outputs.tag }}" - name: Push run: git push --atomic origin HEAD:main "${{ steps.version.outputs.tag }}" @@ -63,7 +68,11 @@ jobs: publish: needs: bump if: inputs.publish - uses: ./.github/workflows/release.yml + uses: ./.github/workflows/publish.yml + permissions: + contents: write + id-token: write with: - version: needs.bump.outputs.tag + version: ${{ needs.bump.outputs.version }} + skip_tests: true From 9743042d49214118dca7ed6d098af3fa114a81b1 Mon Sep 17 00:00:00 2001 From: Filip Riha Date: Fri, 20 Nov 2026 16:07:45 +0100 Subject: [PATCH 6/6] foobar --- foobar | 1 + 1 file changed, 1 insertion(+) create mode 100644 foobar diff --git a/foobar b/foobar new file mode 100644 index 0000000..323fae0 --- /dev/null +++ b/foobar @@ -0,0 +1 @@ +foobar