ci: don't report coverage data as json #286
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: Release | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| branches: | |
| - develop | |
| pull_request: | |
| branches: | |
| - develop | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ | |
| ubuntu-latest, | |
| ubuntu-24.04-arm, | |
| macos-latest, | |
| ] | |
| steps: | |
| - name: Dump GitHub context | |
| env: | |
| GITHUB_CONTEXT: ${{ toJson(github) }} | |
| run: echo "$GITHUB_CONTEXT" | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.ref || github.ref }} | |
| - name: Setup backend | |
| uses: ./.github/actions/setup-backend | |
| with: | |
| python-version: "3.12" | |
| - name: Get history and tags for SCM versioning to work | |
| run: | | |
| git branch | |
| git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
| # TODO: add cbuildwheel cache | |
| - name: Build wheel | |
| uses: pypa/cibuildwheel@v2.22.0 | |
| env: | |
| HATCH_BUILD_HOOKS_ENABLE: true | |
| CIBW_SKIP: '{cp313-macosx_*,*i686*,*musllinux*}' | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: wheels-${{ matrix.os }} | |
| path: dist/ | |
| release: | |
| if: startsWith(github.ref, 'refs/tags/') | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: release | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup backend | |
| uses: ./.github/actions/setup-backend | |
| - name: Download All Artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: dist | |
| merge-multiple: true | |
| pattern: wheels-* | |
| - name: Release PyPI | |
| run: | | |
| export UV_PUBLISH_PASSWORD="${{ secrets.PYPI_TOKEN }}" | |
| export UV_PUBLISH_USERNAME="__token__" | |
| uv publish --publish-url https://upload.pypi.org/legacy/ | |
| - name: Make github release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/* | |
| fail_on_unmatched_files: true | |
| generate_release_notes: true |