Use stable series for API reference intersphinx #496
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: Notebooks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| - macos-latest | |
| language: | |
| - ja | |
| - en | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Install Task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ github.token }} | |
| - name: Set up Python | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install the project | |
| run: uv sync --extra dev --refresh | |
| - name: Check books | |
| run: task check_book_${{ matrix.language }} | |
| disallow_unreleased: | |
| name: Disallow unreleased release notes | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' && contains(github.ref, 'refs/heads/main') || github.event_name == 'pull_request' && github.base_ref == 'main' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check unreleased release notes | |
| run: | | |
| if [[ -f ./docs/en/releases/unreleased.ipynb || -f ./docs/ja/releases/unreleased.ipynb ]]; then | |
| echo "[ERROR] Unreleased release notes found!" >&2; | |
| exit 1; | |
| fi | |
| - name: Check if `unreleased` is not in TOC | |
| run: | | |
| for LANG in ja en ; do | |
| TOC=docs/${LANG}/_toc.yml | |
| if yq e '.parts[-1].chapters[]?.file' "${TOC}" | grep -q '^releases/unreleased$' ; then | |
| echo "[ERROR] 'unreleased' found in ${TOC}!" >&2; | |
| exit 1; | |
| fi | |
| done | |
| check_paired_notebooks: | |
| name: check paired notebooks | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.11" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Install Task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ github.token }} | |
| - name: Setup Python | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install the project | |
| run: uv sync --extra dev --refresh | |
| - name: Check paired notebooks | |
| run: task check_paired_notebooks |