Bump reagento/relator from 1.7.0 to 1.7.1 (#76) #361
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: "CI" | |
| permissions: { } | |
| on: | |
| push: | |
| branches: [ | |
| "main", | |
| ] | |
| tags: [ | |
| "*", | |
| ] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| env: | |
| FORCE_COLOR: "1" | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| cargo-fmt: | |
| name: "cargo fmt" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@nightly # zizmor: ignore[unpinned-uses] | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt-nightly --check | |
| cargo-clippy: | |
| name: "cargo clippy" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 | |
| if: github.event_name == 'pull_request' && github.run_attempt == 1 | |
| with: | |
| lookup-only: false # zizmor: ignore[cache-poisoning] | |
| - uses: dtolnay/rust-toolchain@nightly # zizmor: ignore[unpinned-uses] | |
| with: | |
| components: clippy | |
| - run: cargo clippy --all-targets | |
| tools: | |
| name: ${{ matrix.name }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - name: "zizmor" | |
| command: zizmor .github/ | |
| - name: "typos" | |
| command: typos --config .typos.toml | |
| - name: "rumdl" | |
| command: rumdl check . | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.14" | |
| - name: "Install uv" | |
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | |
| with: | |
| # zizmor: ignore[cache-poisoning] | |
| enable-cache: ${{ github.event_name == 'pull_request' }} | |
| - name: "Install ${{ matrix.name }}" | |
| run: uv pip install --group ${{ matrix.name }} --system | |
| - name: "Run ${{ matrix.name }}" | |
| run: ${{ matrix.command }} | |
| tests-15-bit-python: | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-tests') }} | |
| name: "tests / ubuntu-latest / python 3.14.4 / 15-bit digits" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: "Install uv" | |
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | |
| with: | |
| # zizmor: ignore[cache-poisoning] | |
| enable-cache: ${{ github.event_name == 'pull_request' }} | |
| - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| # zizmor: ignore[cache-poisoning] | |
| with: | |
| path: ${{ runner.temp }}/python3-14-4_15bit | |
| key: python3-14-4-15bit-${{ runner.os }}-v1 | |
| - name: "Run tests" | |
| run: bash .github/scripts/15-bit.sh | |
| tests: | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-tests') }} | |
| uses: ./.github/workflows/tests.yaml | |
| manylinux: | |
| if: ${{ always() && !failure() && !cancelled() }} | |
| needs: [ tests, tests-15-bit-python, cargo-fmt, cargo-clippy, tools ] | |
| uses: ./.github/workflows/manylinux.yaml | |
| musllinux: | |
| if: ${{ always() && !failure() && !cancelled() }} | |
| needs: [ tests, tests-15-bit-python, cargo-fmt, cargo-clippy, tools ] | |
| uses: ./.github/workflows/musllinux.yaml | |
| windows: | |
| if: ${{ always() && !failure() && !cancelled() }} | |
| needs: [ tests, tests-15-bit-python, cargo-fmt, cargo-clippy, tools ] | |
| uses: ./.github/workflows/windows.yaml | |
| macos: | |
| if: ${{ always() && !failure() && !cancelled() }} | |
| needs: [ tests, tests-15-bit-python, cargo-fmt, cargo-clippy, tools ] | |
| uses: ./.github/workflows/macos.yaml | |
| wasm: | |
| if: ${{ always() && !failure() && !cancelled() }} | |
| needs: [ tests, tests-15-bit-python, cargo-fmt, cargo-clippy, tools ] | |
| uses: ./.github/workflows/wasm.yaml | |
| build-sdist: | |
| name: "build-sdist" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: "Build sdist" | |
| uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0 | |
| with: | |
| command: sdist | |
| args: --out dist | |
| - name: "Upload sdist" | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: wheels-sdist | |
| path: dist | |
| release-pypi: | |
| if: ${{ always() && !failure() && !cancelled() }} | |
| name: "Publish to PyPI" | |
| runs-on: ubuntu-latest | |
| needs: [ | |
| build-sdist, | |
| manylinux, | |
| musllinux, | |
| windows, | |
| macos, | |
| wasm, | |
| ] | |
| environment: pypi | |
| permissions: | |
| # Used to sign the release's artifacts and upload to PyPI using trusted publisher | |
| id-token: write | |
| steps: | |
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| - name: "Install uv" | |
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | |
| with: | |
| enable-cache: false | |
| - name: "Validate PyPI publication" | |
| run: uv publish 'wheels-*/*' --dry-run | |
| - name: "Generate PyPI publish attestations" | |
| if: github.ref_type == 'tag' | |
| uses: astral-sh/attest-action@f589a42a7efb6fe400b4f400de60b4bc90390027 # v0.0.6 | |
| with: | |
| paths: | | |
| wheels-*/*.whl | |
| wheels-*/*.tar.gz | |
| - name: "Publish to PyPI" | |
| if: github.ref_type == 'tag' | |
| run: uv publish --trusted-publishing=always 'wheels-*/*' | |
| release-github: | |
| if: ${{ github.ref_type == 'tag' && always() && !failure() && !cancelled() }} | |
| name: "Publish to GitHub Release" | |
| runs-on: ubuntu-latest | |
| needs: [ | |
| build-sdist, | |
| manylinux, | |
| musllinux, | |
| windows, | |
| macos, | |
| wasm, | |
| ] | |
| permissions: | |
| # Use to sign the release artifacts | |
| id-token: write | |
| # Used to upload release artifacts | |
| contents: write | |
| # Used to generate artifact attestation | |
| attestations: write | |
| steps: | |
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| - name: "Generate artifact attestation" | |
| uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2 | |
| with: | |
| subject-path: "wheels-wasm-*/*.whl" | |
| - name: "Publish WASM wheels to GitHub Release" | |
| run: | | |
| tag="${GITHUB_REF#refs/tags/}" | |
| gh release view "$tag" >/dev/null 2>&1 || \ | |
| gh release create "$tag" --title "$tag" --notes "" | |
| gh release upload "$tag" wheels-wasm-*/*.whl --clobber | |
| env: | |
| GH_REPO: ${{ github.repository }} | |
| GH_TOKEN: ${{ github.token }} |