- Notifications
You must be signed in to change notification settings - Fork396
Acelera las ejecuciones en CI#2702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
10 commits Select commitHold shift + click to select a range
efa1082
Checquea submodule con actions/checkout
rtobar34e4479
Separa pasos de instalación
rtobarb5709aa
Agrupa y comenta steps del job Test
rtobar9bc18db
Configura apt/dpkg para minimizar tiempos de instalación
rtobar01f3d8c
No corre apt update
rtobarc3adbc2
Instala locales-all
rtobar5fab9f9
Agrega cálculo de archivos .po a chequear
rtobarb4b709e
Chequea sólo archivos .po previamente calculados
rtobard6abde7
Apply suggestions from code review
rtobarfc244c1
Imprime nombres de variables de interés
rtobarFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
63 changes: 53 additions & 10 deletions.github/workflows/main.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -11,34 +11,77 @@ jobs: | ||
name: Test | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
# Obtención del código | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
# Necesario para que tj-actions/changed-files se ejecute | ||
# dentro de un tiempo adecuado | ||
fetch-depth: 2 | ||
rtobar marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
# Instalación de dependencias | ||
- name: Preparar Python v3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
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 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@v40 | ||
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) | ||
- name: Powrap | ||
if: steps.po-files-to-check.outputs.any_po_files_to_check == 'true' | ||
run: powrap --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: | | ||
# FIXME: Relative paths for includes in 'cpython' | ||
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.