Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-93735: Split Docs CI to speed-up the build#93736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -23,6 +23,7 @@ on: | ||
| paths: | ||
| - 'Doc/**' | ||
| - 'Misc/**' | ||
| - '.github/workflows/doc.yml' | ||
| jobs: | ||
| build_doc: | ||
| @@ -32,6 +33,37 @@ jobs: | ||
| - uses: actions/checkout@v3 | ||
| - name: Register Sphinx problem matcher | ||
| run: echo "::add-matcher::.github/problem-matchers/sphinx.json" | ||
| - name: 'Setup Python' | ||
AA-Turner marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| uses: actions/setup-python@v3 | ||
AA-Turner marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| with: | ||
| cache: 'pip' | ||
| cache-dependency-path: 'Doc/requirements.txt' | ||
| - name: 'Install build dependencies' | ||
| run: make -C Doc/ venv | ||
| - name: 'Check documentation' | ||
| run: make -C Doc/ SPHINXOPTS="-q -W --keep-going" check | ||
ezio-melotti marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| - name: 'Build HTML documentation' | ||
| run: make -C Doc/ SPHINXOPTS="-q -W --keep-going" html | ||
ezio-melotti marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| - 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 | ||
ezio-melotti marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| - name: Register Sphinx problem matcher | ||
| run: echo "::add-matcher::.github/problem-matchers/sphinx.json" | ||
ezio-melotti marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| - uses: actions/cache@v3 | ||
| with: | ||
| path: ~/.cache/pip | ||
| key: ubuntu-doc-${{ hashFiles('Doc/requirements.txt') }} | ||
| restore-keys: | | ||
| ubuntu-doc- | ||
| - name: 'Install Dependencies' | ||
| run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican | ||
| - name: 'Configure CPython' | ||
| @@ -40,17 +72,6 @@ jobs: | ||
| run: make -j4 | ||
| - name: 'Install build dependencies' | ||
| run: make -C Doc/ PYTHON=../python venv | ||
| # Use "xvfb-run" since some doctest tests open GUI windows | ||
| - name: 'Run documentation doctest' | ||
| run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going" doctest | ||