diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..4b85fd9c1d --- /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: | + 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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index caef7bfecb..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 - - python scripts/create_dict.py - - 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$/