Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
python-docs-es/.github/workflows/main.yml at 3.14 · python/python-docs-es · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
python-docs-es
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
412
Star
367
Code
Issues
423
Pull requests
17
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Files
Expand file tree
3.14
Breadcrumbs
python-docs-es
/
.github
/
workflows
/
main.yml
Copy path
View runs
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
100 lines (92 loc) · 3.76 KB
3.14
Breadcrumbs
python-docs-es
/
.github
/
workflows
/
main.yml
Copy path
Top
File metadata and controls
Code
Blame
100 lines (92 loc) · 3.76 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
96
97
98
99
100
name
:
Test
on
:
push
:
branches
:
-
3.*
pull_request
:
permissions
:
contents
:
read
jobs
:
test
:
name
:
Test
runs-on
:
ubuntu-22.04
steps
:
#
Obtención del código
-
uses
:
actions/checkout@v6
with
:
submodules
:
'
true
'
#
Necesario para que tj-actions/changed-files se ejecute
#
dentro de un tiempo adecuado
fetch-depth
:
2
#
Instalación de dependencias
-
name
:
Preparar Python v3.14
uses
:
actions/setup-python@v7
with
:
python-version
:
"
3.14
"
cache
:
"
pip
"
-
name
:
Configura dpkg/apt para ejecutarse de manera eficiente
uses
:
abbbi/github-actions-tune@v1
-
name
:
Deshabilita triggers de postgresql-common
run
:
sudo sed -i '/postgresql-common/d' /var/lib/dpkg/triggers/File
-
name
:
Instalar dependencias de sistema
run
:
|
sudo apt-get update
sudo apt-get install -y hunspell hunspell-es gettext language-pack-es locales-all
-
name
:
Instalar dependencias de Python
run
:
|
python -m pip install -r requirements.txt
-
name
:
Listar paquetes y versiones
run
:
|
pip list
pospell --version
powrap --version
#
Cálculo de los archivos .po a verificar.
#
En el caso de un PR, sólo se chequean los .po que se están editando,
#
mientras que en caseo de un push a las ramas 3.* queremos revisar
#
todos los archivos
-
name
:
Obtiene la lista de archivos .po con cambios (sólo en PRs)
if
:
github.event_name == 'pull_request'
id
:
changed-po-files
uses
:
tj-actions/changed-files@v47
with
:
files
:
|
**/*.po
-
name
:
Calcula lista de archivos .po a revisar
id
:
po-files-to-check
env
:
PO_FILES_TO_CHECK
:
${{ steps.changed-po-files.conclusion == 'skipped' && '**/*.po' || steps.changed-po-files.outputs.all_changed_files }}
run
:
|
echo "po_files_to_check=$PO_FILES_TO_CHECK" >> $GITHUB_OUTPUT
echo "any_po_files_to_check=`test -n \"$PO_FILES_TO_CHECK\" && echo true || echo false`" >> $GITHUB_OUTPUT
-
name
:
Muestra outputs de steps anteriores para debugueo
env
:
CHANGED_PO_FILES
:
${{ toJson(steps.changed-po-files) }}
PO_FILES_TO_CHECK
:
${{ toJson(steps.po-files-to-check) }}
run
:
|
echo "steps.changed-po-files=$PO_FILES_TO_CHECK"
echo "steps.po-files-to-change.$CHANGED_PO_FILES"
#
Chequeos a realizar
-
name
:
TRANSLATORS
run
:
|
diff -Naur TRANSLATORS <(LANG=es python scripts/sort.py < TRANSLATORS)
#
FIXME
#
Se deshabilita porque el CI usa gettext 0.21 que es muy antiguo
#
y la mayoría de los sistemas usa 0.22.X
#
- name: Powrap
#
if: steps.po-files-to-check.outputs.any_po_files_to_check == 'true'
#
run: powrap --diff --check --quiet ${{ steps.po-files-to-check.outputs.po_files_to_check }}
-
name
:
Sphinx lint
if
:
steps.po-files-to-check.outputs.any_po_files_to_check == 'true'
run
:
sphinx-lint ${{ steps.po-files-to-check.outputs.po_files_to_check }}
-
name
:
Pospell
if
:
steps.po-files-to-check.outputs.any_po_files_to_check == 'true'
run
:
python scripts/check_spell.py ${{ steps.po-files-to-check.outputs.po_files_to_check }}
#
Construcción de la documentación
-
name
:
Construir documentación
run
:
|
sphinx-build -j auto -W --keep-going -b html -d cpython/Doc/_build/doctree -D language=es . cpython/Doc/_build/html
#
Publica la documentación recién construida para poder descargarla de ser necesario
-
uses
:
actions/upload-artifact@v7
with
:
path
:
cpython/Doc/_build/html
name
:
documentación-html
You can’t perform that action at this time.