FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-docs-theme/.github/workflows/tests.yml at refs/tags/2026.9 · python/python-docs-theme · GitHub
python
python-docs-theme
Repository navigation
Code
Issues
10
(10)
Pull requests
3
(3)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-docs-theme
/
.github
/
workflows
/
tests.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
95 lines (90 loc) · 3.07 KB
Breadcrumbs
python-docs-theme
/
.github
/
workflows
/
tests.yml
Copy path
File metadata and controls
95 lines (90 loc) · 3.07 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name
:
Tests
on
:
[push, pull_request, workflow_dispatch]
permissions
:
{}
env
:
FORCE_COLOR
:
1
jobs
:
build_doc
:
name
:
Build CPython docs
runs-on
:
ubuntu-latest
strategy
:
fail-fast
:
false
matrix
:
python-version
:
["3.15", "3.14", "3.13", "3.12"]
include
:
-
python-version
:
"
3.15
"
branch
:
"
main
"
steps
:
-
uses
:
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
with
:
persist-credentials
:
false
-
uses
:
actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
#
v7.0.0
with
:
python-version
:
${{ matrix.python-version }}
allow-prereleases
:
true
cache
:
pip
-
name
:
Clone docsbuild scripts
run
:
|
git clone https://github.com/python/docsbuild-scripts/
-
name
:
Set up requirements
run
:
|
python -m pip install --upgrade pip
python -m pip install -r docsbuild-scripts/requirements.txt
-
name
:
Build documentation
run
:
>
python ./docsbuild-scripts/build_docs.py
--quick
--build-root ./build_root
--www-root ./www
--log-directory ./logs
--group "$(id -g)"
--skip-cache-invalidation
--theme "$(pwd)"
--languages en
--branches ${{ matrix.branch || matrix.python-version }}
${{ matrix.branch == 'main' && '--select-output no-html' || '' }}
-
name
:
Show logs
if
:
failure()
run
:
|
cat ./logs/docsbuild.log
-
name
:
Upload
uses
:
actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
#
v7.0.1
with
:
name
:
doc-html-${{ matrix.python-version }}
path
:
www/
translations
:
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
["ubuntu-latest", "windows-latest"]
#
Test minimum supported and latest stable from 3.x series
python-version
:
["3.12", "3"]
steps
:
-
uses
:
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
with
:
persist-credentials
:
false
-
uses
:
actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
#
v7.0.0
with
:
python-version
:
${{ matrix.python-version }}
allow-prereleases
:
true
cache
:
pip
-
name
:
Install dependencies
run
:
|
pip install --upgrade pip
pip install -r requirements.txt
-
name
:
Remove locale file for testing
shell
:
bash
run
:
rm -rf python_docs_theme/locale/pt_BR/
-
run
:
python babel_runner.py extract
-
run
:
python babel_runner.py init -l pt_BR
-
run
:
python babel_runner.py update
-
run
:
python babel_runner.py update -l pt_BR
-
run
:
python babel_runner.py compile
-
run
:
python babel_runner.py compile -l pt_BR
-
name
:
Print .pot file
shell
:
bash
run
:
cat python_docs_theme/locale/python-docs-theme.pot
-
name
:
Print .po file
shell
:
bash
run
:
cat python_docs_theme/locale/pt_BR/LC_MESSAGES/python-docs-theme.po
Back
|
FazBrowse Home
|
New Git URL