π docs(unxt): update readme & indexes (#553) #95
Workflow file for this run
This file contains hidden or 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: CD - unxt-hypothesis | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - "packages/unxt-hypothesis/**" | |
| - ".github/workflows/cd-unxt-hypothesis.yml" | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "unxt-hypothesis-v*" | |
| paths: | |
| - "packages/unxt-hypothesis/**" | |
| - ".github/workflows/cd-unxt-hypothesis.yml" | |
| release: | |
| types: | |
| - published | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| FORCE_COLOR: 3 | |
| jobs: | |
| build: | |
| name: Build & inspect package | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| attestations: write | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5.5.0 | |
| with: | |
| # Required for hatch-vcs to determine version from git tags. | |
| # Can be removed if switching to hardcoded versions. | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: hynek/build-and-inspect-python-package@efb823f52190ad02594531168b7a2d5790e66516 # v2.14.0 | |
| with: | |
| path: packages/unxt-hypothesis | |
| upload-name-suffix: -unxt-hypothesis | |
| attest-build-provenance-github: | |
| ${{ github.event_name != 'pull_request' }} | |
| publish-testpypi: | |
| name: Publish to TestPyPI | |
| needs: [build] | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: testpypi | |
| url: https://test.pypi.org/p/unxt-hypothesis | |
| permissions: | |
| id-token: write | |
| if: | | |
| (github.event_name == 'push' && github.ref == 'refs/heads/main') || | |
| (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/unxt-hypothesis-v')) || | |
| (github.event_name == 'release' && github.event.action == 'published') | |
| steps: | |
| - name: Download built artifact to dist/ | |
| uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 | |
| with: | |
| name: Packages-unxt-hypothesis | |
| path: dist | |
| - uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 | |
| with: | |
| repository-url: https://test.pypi.org/legacy/ | |
| publish-pypi: | |
| name: Publish to PyPI | |
| needs: [build] | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/unxt-hypothesis | |
| permissions: | |
| id-token: write | |
| if: | | |
| github.event_name == 'release' && | |
| github.event.action == 'published' && | |
| startsWith(github.event.release.tag_name, 'unxt-hypothesis-v') | |
| steps: | |
| - name: Download built artifact to dist/ | |
| uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 | |
| with: | |
| name: Packages-unxt-hypothesis | |
| path: dist | |
| - uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 |