Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: do attestation manually #737

Merged
merged 1 commit into from
Sep 2, 2024
Merged
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
30 changes: 25 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:

jobs:
lint:
uses: mhils/workflows/.github/workflows/python-tox.yml@v9
uses: mhils/workflows/.github/workflows/python-tox.yml@v10
with:
cmd: tox -e lint

Expand All @@ -42,31 +42,51 @@ jobs:
py: 3.9.18
- os: ubuntu-latest
py: 3.8.18
uses: mhils/workflows/.github/workflows/python-tox.yml@v9
uses: mhils/workflows/.github/workflows/python-tox.yml@v10
with:
cmd: tox -e py -- -vvv ${{ matrix.args }}
os: ${{ matrix.os }}
python-version: ${{ matrix.py }}

build:
uses: mhils/workflows/.github/workflows/python-build.yml@v9
uses: mhils/workflows/.github/workflows/python-build.yml@v10
permissions:
contents: read
id-token: write
attestations: write


attest:
needs: build
if: github.event_name != 'pull_request'
permissions:
contents: read
id-token: write
attestations: write
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: wheels
path: dist/
- uses: actions/attest-build-provenance@v1
with:
subject-path: 'dist/*'

check:
if: always()
needs:
- lint
- test
- build
uses: mhils/workflows/.github/workflows/alls-green.yml@v9
- attest
uses: mhils/workflows/.github/workflows/alls-green.yml@v10
with:
jobs: ${{ toJSON(needs) }}
allowed-skips: '["attest"]'

deploy:
uses: mhils/workflows/.github/workflows/python-deploy.yml@v9
uses: mhils/workflows/.github/workflows/python-deploy.yml@v10
with:
artifact-name: wheels
needs: check
Expand Down