From f59f031dc23df572385a4bd74896cce6c9ac1f34 Mon Sep 17 00:00:00 2001 From: stan Date: Mon, 10 Feb 2025 17:51:42 +0000 Subject: [PATCH] Add workflows Adds lint workflow and build translation workflow borrowed from python-docs-pl --- .github/workflows/update-lint-and-build.yml | 55 +++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/update-lint-and-build.yml diff --git a/.github/workflows/update-lint-and-build.yml b/.github/workflows/update-lint-and-build.yml new file mode 100644 index 00000000..e2acea46 --- /dev/null +++ b/.github/workflows/update-lint-and-build.yml @@ -0,0 +1,55 @@ +name: Build and Lint Workflow + +on: + schedule: + - cron: '0 * * * *' + push: + branches: + - '*' + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + fail-fast: false + continue-on-error: true + steps: + - uses: actions/setup-python@master + with: + python-version: 3 + - run: pip install sphinx-lint + - uses: actions/checkout@master + with: + ref: 3.13 + - uses: rffontenelle/sphinx-lint-problem-matcher@v1.0.0 + - run: sphinx-lint + + build-translation: + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: actions/setup-python@master + with: + python-version: 3 + - uses: actions/checkout@master + with: + repository: python/cpython + ref: 3.13 + - run: make venv + working-directory: ./Doc + - uses: actions/checkout@master + with: + ref: 3.13 + path: Doc/locales/fa/LC_MESSAGES + - run: git pull + working-directory: ./Doc/locales/fa/LC_MESSAGES + - uses: sphinx-doc/github-problem-matcher@v1.1 + - run: make -e SPHINXOPTS="--color -D language='fa' -W --keep-going" html + working-directory: ./Doc + - uses: actions/upload-artifact@master + if: success() || failure() + with: + name: build-3.13-html + path: Doc/build/html \ No newline at end of file