FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-docs-tr/.github/workflows/build.yml at 3.12 · python/python-docs-tr · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
python-docs-tr
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
46
Star
129
Code
Issues
22
Pull requests
11
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
python-docs-tr
/
.github
/
workflows
/
build.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
65 lines (62 loc) · 2.11 KB
Breadcrumbs
python-docs-tr
/
.github
/
workflows
/
build.yml
Copy path
File metadata and controls
65 lines (62 loc) · 2.11 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
name
:
Tests
on
:
[push, pull_request, workflow_dispatch]
jobs
:
checks
:
#
Using matrix-tool strategy in case we want to add more tools in the future
strategy
:
matrix
:
tool
:
-
name
:
sphinx-lint
package
:
sphinx-lint
command
:
"
sphinx-lint --enable default-role --ignore .git
"
name
:
${{ matrix.tool.name }} (${{ matrix.tool.package }})
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
lots0logs/gh-action-get-changed-files@2.2.2
id
:
changed_files
with
:
token
:
${{ secrets.GITHUB_TOKEN }}
-
uses
:
actions/setup-python@v5
with
:
python-version
:
"
3.12
"
-
name
:
Install ${{ matrix.tool.package }}
run
:
|
if [ -n "${{ matrix.tool.apt_dependencies }}" ]; then
sudo apt-get update && sudo apt-get install -y ${{ matrix.tool.apt_dependencies }}
fi
if [ -n "${{ matrix.tool.package }}" ]; then
pip install ${{ matrix.tool.package }}
fi
-
name
:
Run ${{ matrix.tool.package }}
env
:
ADDED_FILES
:
${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }}
MODIFIED_FILES
:
${{ join(fromJSON(steps.changed_files.outputs.modified), ' ') }}
run
:
|
CHANGED_PO_FILES=$(printf "%s %s\n" "$ADDED_FILES" "$MODIFIED_FILES" | tr ' ' '\n' | grep '.po$'; true)
pwd
tree -L 2
if [ -n "$CHANGED_PO_FILES" ]
then
echo "Running on:" $CHANGED_PO_FILES
${{ matrix.tool.command }}
else
echo "No changed po files, nothing to check."
fi
sphinx
:
name
:
"
Generate docs (sphinx)
"
runs-on
:
ubuntu-latest
timeout-minutes
:
30
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
actions/setup-python@v5
with
:
python-version
:
"
3.12
"
-
name
:
Prepare environment
run
:
|
pwd
tree -L 2
git clone https://github.com/python/cpython.git venv/cpython/
pip install -r venv/cpython/Doc/requirements.txt
-
name
:
Make
run
:
make
Back
|
FazBrowse Home
|
New Git URL