Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/copier-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@v1
uses: liblaf/actions/auth@c0ddb2356ceaa62ed3108a073f2e2a303264afa6 # v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Copier update
# `copier update` requires a clean working directory. We commit changes
# after each update, then use `git reset --soft` to squash all commits
Expand All @@ -52,7 +52,7 @@ jobs:
- name: Git reset
run: git reset --soft '${{ github.sha }}'
- name: Create PR
uses: peter-evans/create-pull-request@v8
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
with:
token: ${{ steps.auth.outputs.token }}
commit-message: "chore(copier): update from template"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/mega-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@v1
uses: liblaf/actions/auth@c0ddb2356ceaa62ed3108a073f2e2a303264afa6 # v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- id: lint
name: MegaLinter
uses: liblaf/actions/mega-linter@v1
uses: liblaf/actions/mega-linter@c0ddb2356ceaa62ed3108a073f2e2a303264afa6 # v1
with:
token: ${{ steps.auth.outputs.token }}
- if: success() || failure()
name: Upload Reports
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
with:
name: mega-linter-reports
path: |-
Expand All @@ -59,7 +59,7 @@ jobs:
sudo rm --force --recursive 'mega-linter.log' 'megalinter-reports'
- if: steps.lint.outputs.has-updated-sources > 0 && github.ref == 'refs/heads/main'
name: Create PR
uses: peter-evans/create-pull-request@v8
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
with:
token: ${{ steps.auth.outputs.token }}
commit-message: ${{ env.GIT_COMMIT_MESSAGE }}
Expand All @@ -74,7 +74,7 @@ jobs:
reviewers: ${{ github.repository_owner }}
- if: steps.lint.outputs.has-updated-sources > 0 && github.ref != 'refs/heads/main'
name: Commit
uses: suzuki-shunsuke/commit-action@v0.1.1
uses: suzuki-shunsuke/commit-action@f12e2d628a4ab72dcefe7890ae07e8dbf1e201b9 # v0.1.1
with:
github_token: ${{ steps.auth.outputs.token }}
commit_message: ${{ env.GIT_COMMIT_MESSAGE }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@v1
uses: liblaf/actions/auth@c0ddb2356ceaa62ed3108a073f2e2a303264afa6 # v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
token: ${{ steps.auth.outputs.token }}
- id: version
Expand All @@ -53,7 +53,7 @@ jobs:
GH_TOKEN: ${{ steps.auth.outputs.token }}
continue-on-error: true
- name: Create release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
with:
body: ${{ github.event.pull_request.body }}
tag_name: ${{ steps.version.outputs.tag }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@v1
uses: liblaf/actions/auth@c0ddb2356ceaa62ed3108a073f2e2a303264afa6 # v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
- name: Install git-cliff
uses: taiki-e/install-action@v2
uses: taiki-e/install-action@fd0f63e180a477d7434580b6d80817978b9ff2b8 # v2
with:
tool: git-cliff
- id: version
name: Next version
uses: liblaf/actions/next-version@v1
uses: liblaf/actions/next-version@c0ddb2356ceaa62ed3108a073f2e2a303264afa6 # v1
- if: steps.version.outputs.bumped == 'true'
name: Generate changelog
run: |-
Expand All @@ -66,7 +66,7 @@ jobs:
GITHUB_TOKEN: ${{ steps.auth.outputs.token }}
- if: steps.version.outputs.bumped == 'true'
name: Create PR
uses: peter-evans/create-pull-request@v8
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
with:
token: ${{ steps.auth.outputs.token }}
commit-message: "chore(release): ${{ steps.version.outputs.tag }}"
Expand Down
10 changes: 5 additions & 5 deletions template/.github/workflows/python-bench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
sessions: ${{ steps.collect.outputs.sessions }}
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
activate-environment: true
- name: Install dependencies
Expand All @@ -47,15 +47,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
activate-environment: true
- name: Install dependencies
run: uv sync --active --frozen --all-packages
- name: Bench
uses: CodSpeedHQ/action@v4
uses: CodSpeedHQ/action@1c8ae4843586d3ba879736b7f6b7b0c990757fab # v4
with:
run: nox --tags 'bench'
mode: instrumentation
10 changes: 5 additions & 5 deletions template/.github/workflows/python-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
- id: config
name: Configure GitHub Pages
uses: actions/configure-pages@v6
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6
- name: Set environment variables
run: echo 'SITE_URL=${{ steps.config.outputs.base_url }}' >> "$GITHUB_ENV"
- name: Setup uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
activate-environment: true
- name: Install dependencies
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Build
run: mkdocs build
- name: Upload Github Pages artifact
uses: actions/upload-pages-artifact@v4
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4
with:
path: site

Expand All @@ -59,4 +59,4 @@ jobs:
steps:
- id: deploy
name: Deploy Github Pages site
uses: actions/deploy-pages@v5
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5
12 changes: 6 additions & 6 deletions template/.github/workflows/python-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
package-version: ${{ steps.build.outputs.package_version }}
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- id: build
name: Build and inspect a Python package
uses: hynek/build-and-inspect-python-package@v2
uses: hynek/build-and-inspect-python-package@fe0a0fb1925ca263d076ca4f2c13e93a6e92a33e # v2
with:
attest-build-provenance-github: true

Expand All @@ -44,12 +44,12 @@ jobs:
url: https://pypi.org/project/${{ needs.build.outputs.package-name }}/${{ needs.build.outputs.package-version }}/
steps:
- name: Download artifacts
uses: actions/download-artifact@v8
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: ${{ needs.build.outputs.artifact-name }}
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
with:
verbose: true
print-hash: true
Expand All @@ -64,12 +64,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v8
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: ${{ needs.build.outputs.artifact-name }}
path: dist
- name: Upload release assets
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
with:
draft: false
files: dist/*
12 changes: 6 additions & 6 deletions template/.github/workflows/python-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
sessions: ${{ steps.collect.outputs.sessions }}
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
activate-environment: true
- name: Install dependencies
Expand All @@ -49,11 +49,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0 # I don't know why, but it is present in Codecov's documentation
- name: Setup uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
activate-environment: true
- name: Install dependencies
Expand All @@ -62,13 +62,13 @@ jobs:
run: nox --session '${{ matrix.session }}'
- if: success() || failure()
name: Upload coverage
uses: codecov/codecov-action@v6
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
with:
report_type: coverage
use_oidc: true
- if: success() || failure()
name: Upload test results
uses: codecov/codecov-action@v6
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
with:
report_type: test_results
use_oidc: true
Expand Down