@@ -15,26 +15,26 @@ jobs:
1515 with :
1616 submodules : ' true'
1717 fetch-depth : 2
18- # - name: Preparar Python v3.11
19- # uses: actions/setup-python@v4
20- # with:
21- # python-version: "3.11"
22- # cache: "pip"
23- # - name: Configura dpkg/apt para correr de manera eficiente
24- # uses: abbbi/github-actions-tune@v1
25- # - name: Deshabilita triggers de postgresql-common
26- # run: sudo sed -i '/postgresql-common/d' /var/lib/dpkg/triggers/File
27- # - name: Instalar dependencias de sistema
28- # run: |
29- # sudo apt-get install -y hunspell hunspell-es gettext language-pack-es locales-all
30- # - name: Instalar dependencias de Python
31- # run: |
32- # python -m pip install -r requirements.txt
33- # - name: Listar paquetes y versiones
34- # run: |
35- # pip list
36- # pospell --version
37- # powrap --version
18+ - name : Preparar Python v3.11
19+ uses : actions/setup-python@v4
20+ with :
21+ python-version : " 3.11"
22+ cache : " pip"
23+ - name : Configura dpkg/apt para correr de manera eficiente
24+ uses : abbbi/github-actions-tune@v1
25+ - name : Deshabilita triggers de postgresql-common
26+ run : sudo sed -i '/postgresql-common/d' /var/lib/dpkg/triggers/File
27+ - name : Instalar dependencias de sistema
28+ run : |
29+ sudo apt-get install -y hunspell hunspell-es gettext language-pack-es locales-all
30+ - name : Instalar dependencias de Python
31+ run : |
32+ python -m pip install -r requirements.txt
33+ - name : Listar paquetes y versiones
34+ run : |
35+ pip list
36+ pospell --version
37+ powrap --version
3838 - name : Obtiene la lista de archivos .po con cambios (sólo en PRs)
3939 if : github.event_name == 'pull_request'
4040 id : changed-po-files
@@ -56,29 +56,29 @@ jobs:
5656 run : |
5757 echo "$PO_FILES_TO_CHECK"
5858 echo "$CHANGED_PO_FILES"
59- - name : Lista los archivos .po con cambios
60- run : echo "Archivo(s) .po con cambios :" ${{ steps.po-files-to-check.outputs.po_files_to_check }}
61- # - name: TRANSLATORS
62- # run: |
63- # diff -Naur TRANSLATORS <(LANG=es python scripts/sort.py < TRANSLATORS)
64- # - name: Powrap
65- # run: powrap -- check --quiet **/*.po
66- # - name: Sphinx lint
67- # run: |
68- # sphinx-lint */* .po
69- # - name: Pospell
70- # if: steps.po-files-to-check.outputs.any_po_files_to_check == 'true'
71- # run: |
72- # python scripts/check_spell.py ${{ steps.po-files-to-check.outputs.po_files_to_check }}
73- # - name: Construir documentación
74- # run: |
75- # # FIXME: Relative paths for includes in 'cpython'
76- # sed -i -e 's|.. include:: ../includes/wasm-notavail.rst|.. include:: ../../../../includes/wasm-notavail.rst|g' cpython/Doc/**/*.rst
77- # sed -i -e 's|.. include:: ../distutils/_setuptools_disclaimer.rst|.. include:: ../../../../distutils/_setuptools_disclaimer.rst|g' cpython/Doc/**/*.rst
78- # sed -i -e 's|.. include:: ./_setuptools_disclaimer.rst|.. include:: ../../../_setuptools_disclaimer.rst|g' cpython/Doc/**/*.rst
79- # sed -i -e 's|.. include:: token-list.inc|.. include:: ../../../token-list.inc|g' cpython/Doc/**/*.rst
80- # sed -i -e 's|.. include:: ../../using/venv-create.inc|.. include:: ../using/venv-create.inc|g' cpython/Doc/**/*.rst
81- # sed -i -e 's|.. include:: ../../../using/venv-create.inc|.. include:: ../../using/venv-create.inc|g' cpython/Doc/**/*.rst
82- # sed -i -e 's|.. include:: /using/venv-create.inc|.. include:: ../../../../using/venv-create.inc|g' cpython/Doc/**/*.rst
83- # # Normal build
84- # PYTHONWARNINGS=ignore::FutureWarning,ignore::RuntimeWarning sphinx-build -j auto -W --keep-going -b html -d cpython/Doc/_build/doctree -D language=es . cpython/Doc/_build/html
59+ - name : Lista los archivos .po a revisar
60+ run : echo "Archivo(s) .po a revisar :" ${{ steps.po-files-to-check.outputs.po_files_to_check }}
61+ - name : TRANSLATORS
62+ run : |
63+ diff -Naur TRANSLATORS <(LANG=es python scripts/sort.py < TRANSLATORS)
64+ - name : Powrap
65+ if : steps.po-files-to- check.outputs.any_po_files_to_check == 'true'
66+ run : powrap --check --quiet ${{ steps.po-files-to-check.outputs.po_files_to_check }}
67+ - name : Sphinx lint
68+ if : steps .po-files-to-check.outputs.any_po_files_to_check == 'true'
69+ run : sphinx-lint ${{ steps.po-files-to-check.outputs.po_files_to_check }}
70+ - name : Pospell
71+ if : steps.po-files-to-check.outputs.any_po_files_to_check == 'true'
72+ run : python scripts/check_spell.py ${{ steps.po-files-to-check.outputs.po_files_to_check }}
73+ - name : Construir documentación
74+ run : |
75+ # FIXME: Relative paths for includes in 'cpython'
76+ sed -i -e 's|.. include:: ../includes/wasm-notavail.rst|.. include:: ../../../../includes/wasm-notavail.rst|g' cpython/Doc/**/*.rst
77+ sed -i -e 's|.. include:: ../distutils/_setuptools_disclaimer.rst|.. include:: ../../../../distutils/_setuptools_disclaimer.rst|g' cpython/Doc/**/*.rst
78+ sed -i -e 's|.. include:: ./_setuptools_disclaimer.rst|.. include:: ../../../_setuptools_disclaimer.rst|g' cpython/Doc/**/*.rst
79+ sed -i -e 's|.. include:: token-list.inc|.. include:: ../../../token-list.inc|g' cpython/Doc/**/*.rst
80+ sed -i -e 's|.. include:: ../../using/venv-create.inc|.. include:: ../using/venv-create.inc|g' cpython/Doc/**/*.rst
81+ sed -i -e 's|.. include:: ../../../using/venv-create.inc|.. include:: ../../using/venv-create.inc|g' cpython/Doc/**/*.rst
82+ sed -i -e 's|.. include:: /using/venv-create.inc|.. include:: ../../../../using/venv-create.inc|g' cpython/Doc/**/*.rst
83+ # Normal build
84+ PYTHONWARNINGS=ignore::FutureWarning,ignore::RuntimeWarning sphinx-build -j auto -W --keep-going -b html -d cpython/Doc/_build/doctree -D language=es . cpython/Doc/_build/html
0 commit comments