From ab34d31cf35220c4b45a3d7c0007fde31ea2251c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Sat, 28 Nov 2020 19:31:18 +0100 Subject: [PATCH 1/6] Migrar CI de TravisCI a Github Actions --- .github/workflows/main.yml | 38 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 19 ------------------- 2 files changed, 38 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..a174fe3cc9 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: Test + +on: + push: + branches: + - 3.* + pull_request: + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Preparar Python v3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Sincronizar con CPython + run: | + git submodule sync + git submodule update --init --force cpython + - name: Instalar dependencias + run: | + sudo apt-get update + sudo apt-get install -y hunspell hunspell-es gettext + python -m pip install -r requirements.txt + pip list + pospell --version + powrap --version + - name: Powrap + run: powrap --check --quiet **/*.po + - name: Pospell + run: | + awk 1 dict dictionaries/*.txt > dict.txt + pospell -p dict.txt -l es_AR -l es_ES **/*.po + - name: Construir documentación + run: PYTHONWARNINGS=ignore::FutureWarning sphinx-build -j auto -W --keep-going -b html -d cpython/Doc/_build/doctree -D language=es . cpython/Doc/_build/html diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d4b73e2897..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: python -dist: bionic -python: 3.8 -before_install: - - sudo apt-get update - - sudo apt-get install -y hunspell hunspell-es -install: - - make setup - - pospell --version - - powrap --version -script: - - powrap --check --quiet **/*.po - - awk 1 dict dictionaries/*.txt > dict.txt - - pospell -p dict.txt -l es_AR -l es_ES **/*.po - - pip install -q -r requirements.txt - - PYTHONWARNINGS=ignore::FutureWarning sphinx-build -j auto -W --keep-going -b html -d cpython/Doc/_build/doctree -D language=es . cpython/Doc/_build/html -branches: - only: - - /^3\.\d$/ From a6b07487e6fd0901dbfac6f3450f127b0c864b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Thu, 3 Dec 2020 18:04:41 +0100 Subject: [PATCH 2/6] Actualizado CI con nuevo script 'create_dict.py'. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a174fe3cc9..4b85fd9c1d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,7 +32,7 @@ jobs: run: powrap --check --quiet **/*.po - name: Pospell run: | - awk 1 dict dictionaries/*.txt > dict.txt + python scripts/create_dict.py pospell -p dict.txt -l es_AR -l es_ES **/*.po - name: Construir documentación run: PYTHONWARNINGS=ignore::FutureWarning sphinx-build -j auto -W --keep-going -b html -d cpython/Doc/_build/doctree -D language=es . cpython/Doc/_build/html From 24212d70e79e6783bdcda7392a8b1ab0ac1a9961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Tue, 8 Dec 2020 15:03:17 +0100 Subject: [PATCH 3/6] Crear falso '.travis.yml' --- .travis.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..e69de29bb2 From 5a7898433f8212351c09014141054546d66c12de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Tue, 8 Dec 2020 15:05:13 +0100 Subject: [PATCH 4/6] Eliminar '.travis.yml' --- .travis.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e69de29bb2..0000000000 From db44bea59e6a7bf89f449f2c2bb6858abcdf2c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Mon, 14 Dec 2020 16:59:10 +0100 Subject: [PATCH 5/6] Lanzamiento manual --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4b85fd9c1d..ea8fabce48 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,9 +2,10 @@ name: Test on: push: - branches: - - 3.* + #branches: + # - 3.* pull_request: + workflow_dispatch: jobs: test: From e989d4a768187aced31a71767d5b743dfdba7913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Mon, 14 Dec 2020 17:16:44 +0100 Subject: [PATCH 6/6] Vuelta al lanzamiento desde ramas --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ea8fabce48..4b85fd9c1d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,10 +2,9 @@ name: Test on: push: - #branches: - # - 3.* + branches: + - 3.* pull_request: - workflow_dispatch: jobs: test: