This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from rmartin16/attest-package
Use new create package action
- Loading branch information
Showing
3 changed files
with
31 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,16 @@ on: | |
push: | ||
branches: | ||
- main | ||
workflow_call: | ||
inputs: | ||
attest-package: | ||
description: "Create GitHub provenance attestation for the package." | ||
default: "false" | ||
type: string | ||
outputs: | ||
artifact-name: | ||
description: "Name of the uploaded artifact; use for artifact retrieval." | ||
value: ${{ jobs.package.outputs.artifact-name }} | ||
|
||
# Cancel active CI runs for a PR before starting another run | ||
concurrency: | ||
|
@@ -27,10 +37,14 @@ jobs: | |
tox-source: "tox" | ||
|
||
package: | ||
name: Python Package | ||
name: Package gbulb | ||
permissions: | ||
id-token: write | ||
contents: read | ||
attestations: write | ||
uses: beeware/.github/.github/workflows/python-package-create.yml@main | ||
with: | ||
tox-source: "tox" | ||
attest: ${{ inputs.attest-package }} | ||
|
||
python-versions: | ||
name: Python compatibility test | ||
|
@@ -47,22 +61,30 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install system dependencies | ||
- name: Get Packages | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ needs.package.outputs.artifact-name }} | ||
path: dist | ||
|
||
- name: Install System Dependencies | ||
run: | | ||
sudo apt update -y | ||
sudo apt install -y pkg-config python3-dev libgirepository1.0-dev gir1.2-gtk-3.0 | ||
- name: Install Tox | ||
run: | | ||
# We don't actually want to install gbulb; we just want the dev extras | ||
# so that we have a known version of coverage | ||
python -m pip install -e .[dev] | ||
uses: beeware/.github/.github/actions/install-requirement@main | ||
with: | ||
requirements: tox | ||
extra: dev | ||
|
||
- name: Test | ||
run: tox -e py | ||
run: tox -e py --installpkg dist/gbulb-*.whl |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
``hynek/build-and-inspect-python-package`` is now used to create the Python package. |
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