Skip to content
Snippets Groups Projects
Select Git revision
  • 428bd028b3e6dceea2385f488491340be665b125
  • main default protected
  • 3.10
  • 3.11
  • revert-15688-bpo-38031-_io-FileIO-opener-crash
  • 3.8
  • 3.9
  • 3.7
  • enum-fix_auto
  • branch-v3.11.0
  • backport-c3648f4-3.11
  • gh-93963/remove-importlib-resources-abcs
  • refactor-wait_for
  • shared-testcase
  • v3.12.0a2
  • v3.12.0a1
  • v3.11.0
  • v3.8.15
  • v3.9.15
  • v3.10.8
  • v3.7.15
  • v3.11.0rc2
  • v3.8.14
  • v3.9.14
  • v3.7.14
  • v3.10.7
  • v3.11.0rc1
  • v3.10.6
  • v3.11.0b5
  • v3.11.0b4
  • v3.10.5
  • v3.11.0b3
  • v3.11.0b2
  • v3.9.13
34 results

doc.yml

Blame
  • doc.yml 2.14 KiB
    name: Docs
    
    on:
      #push:
      #  branches:
      #  - master
      #  - 3.9
      #  - 3.8
      #  - 3.7
      #  paths:
      #  - 'Doc/**'
      pull_request:
        branches:
        - master
        - 3.10
        - 3.9
        - 3.8
        - 3.7
        paths:
        - 'Doc/**'
        - 'Misc/**'
    
    permissions:
      contents: read
    
    concurrency:
      group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
      cancel-in-progress: true
    
    jobs:
      build_doc:
        name: 'Docs'
        runs-on: ubuntu-latest
        steps:
        - uses: actions/checkout@v3
        - name: Register Sphinx problem matcher
          run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
        - name: 'Set up Python'
          uses: actions/setup-python@v4
          with:
            python-version: '3'
            cache: 'pip'
            cache-dependency-path: 'Doc/requirements.txt'
        - name: 'Install build dependencies'
          run: make -C Doc/ venv
        - name: 'Check documentation'
          run: make -C Doc/ suspicious
        - name: 'Build HTML documentation'
          run: make -C Doc/ SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" html
        - name: 'Upload'
          uses: actions/upload-artifact@v3
          with:
            name: doc-html
            path: Doc/build/html
    
      # Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release
      doctest:
        name: 'Doctest'
        runs-on: ubuntu-latest
        steps:
        - uses: actions/checkout@v3
        - name: Register Sphinx problem matcher
          run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
        - uses: actions/cache@v3
          with:
            path: ~/.cache/pip
            key: ubuntu-doc-${{ hashFiles('Doc/requirements.txt') }}
            restore-keys: |
              ubuntu-doc-
        - name: 'Install Dependencies'