chore(deps): update base digest to 20882e7 #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test & release | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }} | |
jobs: | |
should-run: | |
name: Should run | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
outputs: | |
should-run: ${{ steps.action.outputs.should-run }} | |
steps: | |
- id: action | |
uses: techneg-it/should-workflow-run@dcbb88600d59ec2842778ef1e2d41f680f876329 # v1.0.0 | |
pre-commit: | |
name: Run `pre-commit` | |
needs: should-run | |
if: fromJSON(needs.should-run.outputs.should-run) | |
runs-on: ubuntu-latest | |
env: | |
# renovate: datasource=github-releases depName=actions/python-versions extractVersion=^(?<version>\S+)-\d+$ | |
PYTHON_VERSION: 3.12.4 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 | |
test: | |
name: Run approval tests | |
needs: should-run | |
if: fromJSON(needs.should-run.outputs.should-run) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 # `copier` prefers full-history clones | |
submodules: true | |
- name: Debug on runner (When re-run with "Enable debug logging" checked) | |
if: runner.debug | |
uses: mxschmitt/action-tmate@b3db6e16e597d92037c8647e54acc5d2b1b48dee # v3.18 | |
with: | |
detached: true | |
- name: Install test dependencies | |
run: | | |
pipx install copier | |
pipx install texttest | |
- name: Run `texttest` | |
run: texttest -b | |
results: | |
name: Collect results | |
needs: | |
- pre-commit | |
- test | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: codfish/semantic-release-action@9a999e0cdb207de2c9d9d4276860435727818989 # v3.4.1 | |
with: | |
plugins: | | |
[ "@semantic-release/commit-analyzer", | |
"@semantic-release/release-notes-generator", | |
"@semantic-release/github" | |
] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |