Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
2 changes: 1 addition & 1 deletion .github/workflows/check-pr-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ on:
jobs:
check-pr-template:
name: Check PR template
uses: beeware/.github/.github/workflows/pr-checklist.yml@main
uses: beeware/.github/.github/workflows/pr-checklist.yml@741cc5a311012ee0ee195938889a337449d01eeb # main
40 changes: 23 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:
jobs:
pre-commit:
name: Pre-commit checks
uses: beeware/.github/.github/workflows/pre-commit-run.yml@main
uses: beeware/.github/.github/workflows/pre-commit-run.yml@741cc5a311012ee0ee195938889a337449d01eeb # main
with:
pre-commit-source: "--group pre-commit"

Expand All @@ -40,11 +40,14 @@ jobs:
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v7.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v6.3.0
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
persist-credentials: false
python-version: "3.13"

- name: Install Tox
Expand All @@ -55,7 +58,7 @@ jobs:

towncrier:
name: Check towncrier
uses: beeware/.github/.github/workflows/towncrier-run.yml@main
uses: beeware/.github/.github/workflows/towncrier-run.yml@741cc5a311012ee0ee195938889a337449d01eeb # main
with:
tox-source: "--group tox-uv"

Expand All @@ -71,7 +74,7 @@ jobs:
- "" # root briefcase package
- "debugger"
- "automation"
uses: beeware/.github/.github/workflows/python-package-create.yml@main
uses: beeware/.github/.github/workflows/python-package-create.yml@741cc5a311012ee0ee195938889a337449d01eeb # main
with:
build-subdirectory: ${{ matrix.subdir }}
attest: ${{ inputs.attest-package }}
Expand All @@ -83,12 +86,13 @@ jobs:
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v7.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
fetch-depth: 1

- name: Set up Python
uses: actions/setup-python@v6.3.0
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.X"
cache: pip
Expand Down Expand Up @@ -132,18 +136,19 @@ jobs:
# experimental: true
steps:
- name: Checkout
uses: actions/checkout@v7.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v6.3.0
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Get Packages
uses: actions/download-artifact@v8.0.1
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: ${{ format('{0}*', needs.package.outputs.artifact-basename) }}
merge-multiple: true
Expand All @@ -162,7 +167,7 @@ jobs:

- name: Store Coverage Data
if: always() && contains('success,failure', steps.test.outcome)
uses: actions/upload-artifact@v7.0.1
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: coverage-data-${{ matrix.platform }}-${{ matrix.python-version }}
path: ".coverage.*"
Expand All @@ -186,12 +191,13 @@ jobs:
if: always() && contains('success,failure', needs.unit-tests.result)
steps:
- name: Checkout
uses: actions/checkout@v7.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v6.3.0
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
# Use minimum version of python for coverage to avoid phantom branches
# https://github.com/nedbat/coveragepy/issues/1572#issuecomment-1522546425
Expand All @@ -201,7 +207,7 @@ jobs:
run: python -m pip install --group tox-uv

- name: Retrieve Coverage Data
uses: actions/download-artifact@v8.0.1
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: coverage-data-*
merge-multiple: true
Expand All @@ -219,15 +225,15 @@ jobs:

- name: Upload Project Coverage HTML Report
if: always() && steps.project-coverage.outcome == 'failure'
uses: actions/upload-artifact@v7.0.1
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: html-coverage-report-project
path: htmlcov

verify-projects:
name: Verify project
needs: [ package, unit-tests ]
uses: beeware/.github/.github/workflows/app-create-verify.yml@main
uses: beeware/.github/.github/workflows/app-create-verify.yml@741cc5a311012ee0ee195938889a337449d01eeb # main
with:
runner-os: ${{ matrix.runner-os }}
framework: ${{ matrix.framework }}
Expand All @@ -240,7 +246,7 @@ jobs:
verify-apps:
name: Build app
needs: [ package, unit-tests ]
uses: beeware/.github/.github/workflows/app-build-verify.yml@main
uses: beeware/.github/.github/workflows/app-build-verify.yml@741cc5a311012ee0ee195938889a337449d01eeb # main
with:
# Builds on Linux must use System Python; otherwise, fall back to version all GUI toolkits support
python-version: ${{ startsWith(matrix.runner-os, 'ubuntu') && 'system' || '3.12' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-changenote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
changenote:
name: Dependabot Change Note
uses: beeware/.github/.github/workflows/dependabot-changenote.yml@main
uses: beeware/.github/.github/workflows/dependabot-changenote.yml@741cc5a311012ee0ee195938889a337449d01eeb # main
secrets: inherit
with:
changenote-format: "md"
2 changes: 1 addition & 1 deletion .github/workflows/new-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Add issue to BeeWare project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v2.0.0
- uses: actions/add-to-project@5afcf98fcd03f1c2f92c3c83f58ae24323cc57fd # v2.0.0
with:
project-url: https://github.com/orgs/beeware/projects/1
github-token: ${{ secrets.BRUTUS_PAT_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
# This permission is required for trusted publishing.
id-token: write
steps:
- uses: dsaltares/fetch-gh-release-asset@1.1.2
- uses: dsaltares/fetch-gh-release-asset@aa2ab1243d6e0d5b405b973c89fa4d06a2d0fff7 # 1.1.2
with:
version: tags/${{ github.event.release.tag_name }}
file: ${{ github.event.repository.name }}.*
regex: true
target: dist/

- name: Publish release to production PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # release/v1
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
name: Create Release

permissions: {}

on:
push:
tags:
- 'v*'

jobs:
ci:
permissions: {}
name: CI
uses: ./.github/workflows/ci.yml
with:
attest-package: "true"

docs:
permissions: {}
name: Verify Docs Build
uses: beeware/.github/.github/workflows/docs-build-verify.yml@main
uses: beeware/.github/.github/workflows/docs-build-verify.yml@741cc5a311012ee0ee195938889a337449d01eeb # main
secrets: inherit
with:
project-name: "briefcase"
Expand All @@ -34,12 +38,12 @@ jobs:
echo "VERSION=${GITHUB_REF_NAME#v}" | tee -a $GITHUB_ENV

- name: Set up Python
uses: actions/setup-python@v6.3.0
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.x"

- name: Get packages
uses: actions/download-artifact@v8.0.1
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: ${{ format('{0}*', needs.ci.outputs.artifact-basename) }}
merge-multiple: true
Expand All @@ -59,14 +63,14 @@ jobs:
test $(briefcase --version) = $VERSION

- name: Create release
uses: ncipollo/release-action@v1.21.0
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
with:
name: ${{ env.VERSION }}
draft: true
artifacts: dist/${{ github.event.repository.name }}*
artifactErrorsFailBuild: true

- name: Publish release to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # release/v1
with:
repository-url: https://test.pypi.org/legacy/
1 change: 1 addition & 0 deletions changes/2937.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added zizmor to the pre-commit configuration to audit GitHub Actions workflows for security issues.
Loading