mirror of
https://github.com/python/cpython.git
synced 2024-12-01 11:15:56 +01:00
aa4caf9887
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.1 to v2.2.2. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2.2.1...e448a9b857ee2131e752b06002bf0e093c65e571) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: Docs
|
|
|
|
on:
|
|
#push:
|
|
# branches:
|
|
# - master
|
|
# - 3.9
|
|
# - 3.8
|
|
# - 3.7
|
|
# paths:
|
|
# - 'Doc/**'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- 3.9
|
|
- 3.8
|
|
- 3.7
|
|
paths:
|
|
- 'Doc/**'
|
|
- 'Misc/**'
|
|
|
|
jobs:
|
|
build_doc:
|
|
name: 'Docs'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Register Sphinx problem matcher
|
|
run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
|
|
- name: 'Install Dependencies'
|
|
run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican
|
|
- name: 'Configure CPython'
|
|
run: ./configure --with-pydebug
|
|
- name: 'Build CPython'
|
|
run: make -j4
|
|
- name: 'Install build dependencies'
|
|
run: make -C Doc/ PYTHON=../python venv
|
|
- name: 'Build documentation'
|
|
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" doctest html
|
|
- name: 'Upload'
|
|
uses: actions/upload-artifact@v2.2.2
|
|
with:
|
|
name: doc-html
|
|
path: Doc/build/html
|