Skip to content
Open
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
14 changes: 7 additions & 7 deletions .github/workflows/bench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
python-versions: ${{ steps.inspect.outputs.supported_python_classifiers_json_array }}
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- id: inspect
name: Build and Inspect a Python Package
uses: hynek/build-and-inspect-python-package@v2
uses: hynek/build-and-inspect-python-package@fe0a0fb1925ca263d076ca4f2c13e93a6e92a33e # v2
- name: Setup Python
uses: liblaf/actions/setup-python@v1
uses: liblaf/actions/setup-python@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
- id: collect
name: Collect
run: |-
Expand All @@ -52,13 +52,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Python
uses: liblaf/actions/setup-python@v1
uses: liblaf/actions/setup-python@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
- name: Install Mise
uses: jdx/mise-action@v3
uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3
- name: Bench
uses: CodSpeedHQ/action@v4
uses: CodSpeedHQ/action@1c8ae4843586d3ba879736b7f6b7b0c990757fab # v4
with:
run: mise run bench
mode: instrumentation
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ 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@v5
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
- name: Set Environment Variables
run: echo 'SITE_URL=${{ steps.config.outputs.base_url }}' >> "$GITHUB_ENV"
- name: Setup Python
uses: liblaf/actions/setup-python@v1
uses: liblaf/actions/setup-python@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
- if: hashFiles('docs/scripts/pre-build.sh') != ''
name: Pre-Build
run: docs/scripts/pre-build.sh
- 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 @@ -54,4 +54,4 @@ jobs:
steps:
- id: deploy
name: Deploy Github Pages Site
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
12 changes: 6 additions & 6 deletions .github/workflows/mega-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@v1
uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ github.head_ref || github.ref }}
- id: lint
name: MegaLinter
uses: liblaf/actions/mega-linter@v1
uses: liblaf/actions/mega-linter@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
with:
token: ${{ steps.auth.outputs.token }}
- if: success() || failure()
name: Upload Reports
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: mega-linter-reports
path: |-
Expand All @@ -57,7 +57,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 with Applied Fixes
uses: peter-evans/create-pull-request@v8
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
with:
commit-message: "chore(mega-linter): apply linters automatic fixes"
branch: mega-linter-fix/${{ github.ref_name }}
Expand All @@ -69,7 +69,7 @@ jobs:
reviewers: ${{ github.repository_owner }}
- if: steps.lint.outputs.has-updated-sources > 0 && github.ref != 'refs/heads/main'
name: Commit and Push Applied Linter Fixes
uses: liblaf/actions/commit@v1
uses: liblaf/actions/commit@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
with:
add-options: --verbose --update
message: "chore(mega-linter): apply linters automatic fixes"
20 changes: 10 additions & 10 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@v1
uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # 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: release-please
name: Release Please
uses: googleapis/release-please-action@v4
uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4
with:
token: ${{ steps.auth.outputs.token }}
config-file: .config/release-please/config.json
Expand All @@ -62,12 +62,12 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@v1
uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ fromJson(needs.release-please.outputs.pr).headBranchName }}
token: ${{ steps.auth.outputs.token }}
Expand All @@ -81,7 +81,7 @@ jobs:
version="$(awk '{ print $NF }' <<< "$title")"
printf 'tag=%s\n' "v$version" >> "$GITHUB_OUTPUT"
- name: Changelog
uses: liblaf/actions/changelog@v1
uses: liblaf/actions/changelog@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
with:
output: CHANGELOG.md
args: --tag '${{ steps.tag.outputs.tag }}'
Expand All @@ -94,7 +94,7 @@ jobs:
- name: Undo Last Commit
run: git reset --soft HEAD~1
- name: Commit
uses: liblaf/actions/commit@v1
uses: liblaf/actions/commit@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
with:
add-options: --verbose '.config/release-please/.manifest.json' 'CHANGELOG.md'
force: true
Expand All @@ -120,19 +120,19 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@v1
uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ needs.release-please.outputs.tag }}
token: ${{ steps.auth.outputs.token }}
fetch-depth: 0
- id: changelog
name: Changelog
uses: liblaf/actions/changelog@v1
uses: liblaf/actions/changelog@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
with:
args: --current --strip all
- name: Update Release Notes
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,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 @@ -45,12 +45,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@v7
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
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 @@ -65,11 +65,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v7
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
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:
files: dist/*
16 changes: 8 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
python-versions: ${{ steps.inspect.outputs.supported_python_classifiers_json_array }}
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- id: inspect
name: Build and Inspect a Python Package
uses: hynek/build-and-inspect-python-package@v2
uses: hynek/build-and-inspect-python-package@fe0a0fb1925ca263d076ca4f2c13e93a6e92a33e # v2
- name: Setup Python
uses: liblaf/actions/setup-python@v1
uses: liblaf/actions/setup-python@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
- id: collect
name: Collect
run: |-
Expand All @@ -56,25 +56,25 @@ jobs:
EAGER_IMPORT: true # ref: <https://github.com/scientific-python/lazy-loader?tab=readme-ov-file#early-failure>
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 Python
uses: liblaf/actions/setup-python@v1
uses: liblaf/actions/setup-python@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Mise
uses: jdx/mise-action@v3
uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3
- name: Test
run: mise run test
- if: success() || failure()
name: Upload Coverage
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5
with:
use_oidc: true
- if: success() || failure()
name: Upload Test Results
uses: codecov/test-results-action@v1
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1
with:
use_oidc: true
strategy:
Expand Down
Loading