Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update ci/cd #25

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/update-and-build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Translation and Linting Workflow

on:
schedule:
- cron: '0 6 * * *'
Expand All @@ -9,6 +11,7 @@ jobs:
update-translation:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
Expand All @@ -18,9 +21,10 @@ jobs:
- uses: actions/setup-python@master
with:
python-version: 3
- run: sudo apt-get install -y gettext
- run: curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
working-directory: /usr/local/bin
- run: pip install requests cogapp polib transifex-python sphinx-intl blurb six
- run: pip install requests cogapp polib transifex-python sphinx-lint sphinx-intl blurb six
- uses: actions/checkout@master
with:
ref: ${{ matrix.version }}
Expand All @@ -40,19 +44,24 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: peter-evans/repository-dispatch@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: translation-updated
python-version: 3
- uses: actions/checkout@master
with:
ref: ${{ matrix.version }}
- uses: rffontenelle/[email protected]
- run: sphinx-lint
build-translation:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
format: [html, latex]
needs: ['update-translation']
steps:
- uses: actions/setup-python@master
with:
python-version: 3
python-version: 3.12 # pin for Sphinx 3.4.3 in 3.10 branch (see #63)
- uses: actions/checkout@master
with:
repository: python/cpython
Expand All @@ -65,7 +74,8 @@ jobs:
path: Doc/locales/uk/LC_MESSAGES
- run: git pull
working-directory: ./Doc/locales/uk/LC_MESSAGES
- run: make -e SPHINXOPTS="-D language='uk' -D gettext_compact=0" SPHINXERRORHANDLING="" ${{ matrix.format }}
- uses: sphinx-doc/[email protected]
- run: make -e SPHINXOPTS=" -D language='uk' -W --keep-going" ${{ matrix.format }}
working-directory: ./Doc
- uses: actions/upload-artifact@master
with:
Expand All @@ -74,6 +84,7 @@ jobs:
output-pdf:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
needs: ['build-translation']
Expand Down