Skip to content

tests: Loosen an assertion on a mangled name #45

tests: Loosen an assertion on a mangled name

tests: Loosen an assertion on a mangled name #45

Workflow file for this run

name: Build
on:
push:
pull_request:
release:
types:
- published
schedule:
# At 12:00 UTC on every day-of-month
- cron: "0 12 */1 * *"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build_dist:
name: Source and wheel distributions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Build distributions
run: pipx run build[virtualenv] --sdist --wheel
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
path: dist/*
upload_pypi:
needs: [build_dist]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
permissions:
id-token: write # Required to retrieve a Trusted Publishing token
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2