Skip to content

fix: unify ragged.matmul and the @ operator #417

fix: unify ragged.matmul and the @ operator

fix: unify ragged.matmul and the @ operator #417

Workflow file for this run

name: CD
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
release:
types:
- published
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FORCE_COLOR: 3
jobs:
dist:
name: Distribution build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2
publish:
needs: [dist]
name: Publish to PyPI
environment: pypi
permissions:
id-token: write
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v8
with:
name: Packages
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'release' && github.event.action == 'published'
docs:
name: Publish docs to GitHub Pages
runs-on: ubuntu-latest
# Deploy on push to main or manual dispatch only.
# Releases run on a tag ref which github-pages environment protection rejects;
# the push-to-main that precedes every release already deploys the docs.
if:
"github.event_name == 'workflow_dispatch' || (github.event_name == 'push'
&& github.ref == 'refs/heads/main')"
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install uv
run: python -m pip install --upgrade uv
- name: Install docs dependencies
run: uv pip install --system '.[docs]'
- name: Build docs
run: sphinx-build -W --keep-going -n -T -b html docs/ docs/_build/html
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/_build/html/
- name: Deploy to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4