FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/.github/workflows/doc.yml at 3.10 · python/cpython · GitHub
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.3k
(2.3k)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
.github
/
workflows
/
doc.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
80 lines (75 loc) · 2.36 KB
Breadcrumbs
cpython
/
.github
/
workflows
/
doc.yml
Copy path
File metadata and controls
80 lines (75 loc) · 2.36 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
-
name
:
Register Sphinx problem matcher
run
:
echo "::add-matcher::.github/problem-matchers/sphinx.json"
-
name
:
'
Set up Python
'
uses
:
actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
#
v7.0.0
with
:
python-version
:
'
3.12
'
cache
:
'
pip
'
cache-dependency-path
:
'
Doc/requirements.txt
'
-
name
:
'
Install build dependencies
'
run
:
make -C Doc/ venv
-
name
:
'
Build HTML documentation
'
run
:
make -C Doc/ SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" html
-
name
:
'
Upload
'
uses
:
actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
#
v7.0.1
with
:
name
:
doc-html
path
:
Doc/build/html
include-hidden-files
:
true
overwrite
:
true
#
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@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
-
name
:
Register Sphinx problem matcher
run
:
echo "::add-matcher::.github/problem-matchers/sphinx.json"
-
uses
:
actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
#
v6.1.0
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
'
run
:
./configure --with-pydebug
-
name
:
'
Build CPython
'
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" SPHINXERRORHANDLING="-W --keep-going" doctest
Back
|
FazBrowse Home
|
New Git URL