Build and Lint Workflow #2206
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
| name: Build and Lint Workflow | |
| on: | |
| schedule: | |
| - cron: '0 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 | |
| - uses: rffontenelle/[email protected] | |
| - 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: | |
| path: Doc/locales/fa/LC_MESSAGES | |
| - run: git pull | |
| working-directory: ./Doc/locales/fa/LC_MESSAGES | |
| - uses: sphinx-doc/[email protected] | |
| - run: make -e SPHINXOPTS="--color -D language='fa' -D gettext_allow_fuzzy_translations=1 -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 |