Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- master
- '3.14'
- "3.15"
workflow_dispatch:

permissions:
Expand All @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: [ '3.14' ]
version: ["3.15"]
steps:
- uses: actions/setup-python@master
with:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/po-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,23 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ '3.14' ]
version: ["3.15"]
continue-on-error: true
steps:
- uses: actions/setup-python@master
with:
python-version: 3
- run: pip install sphinx-lint
- name: Resolve translation ref
id: translation-ref
run: |
if git ls-remote --exit-code --heads "https://github.com/${{ github.repository }}.git" "${{ matrix.version }}" >/dev/null; then
echo "ref=${{ matrix.version }}" >> "$GITHUB_OUTPUT"
else
echo "ref=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
fi
- uses: actions/checkout@master
with:
ref: ${{ matrix.version }}
ref: ${{ steps.translation-ref.outputs.ref }}
- uses: rffontenelle/sphinx-lint-problem-matcher@v1.0.0
- run: sphinx-lint
31 changes: 23 additions & 8 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Test Build Workflow

on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
push:
branches:
- '*'
- "*"
workflow_dispatch:

jobs:
Expand All @@ -14,8 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ '3.14' ]
format: [ html, latex, epub ]
version: ["3.15"]
format: [html, latex, epub]
steps:
- uses: actions/setup-python@master
with:
Expand All @@ -26,9 +26,17 @@ jobs:
ref: ${{ matrix.version }}
- run: make venv
working-directory: ./Doc
- name: Resolve translation ref
id: translation-ref
run: |
if git ls-remote --exit-code --heads "https://github.com/${{ github.repository }}.git" "${{ matrix.version }}" >/dev/null; then
echo "ref=${{ matrix.version }}" >> "$GITHUB_OUTPUT"
else
echo "ref=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
fi
- uses: actions/checkout@master
with:
ref: ${{ matrix.version }}
ref: ${{ steps.translation-ref.outputs.ref }}
path: Doc/locales/vi/LC_MESSAGES
- run: git pull
working-directory: ./Doc/locales/vi/LC_MESSAGES
Expand All @@ -47,14 +55,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: [ '3.14' ]
needs: [ 'build-translation' ]
version: ["3.15"]
needs: ["build-translation"]
steps:
- uses: actions/download-artifact@master
with:
name: build-${{ matrix.version }}-latex
- run: sudo apt-get update
- run: sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy
- run: sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy librsvg2-bin
- name: Convert SVG assets for LaTeX
run: |
shopt -s nullglob
for svg in *.svg; do
rsvg-convert -f pdf -o "${svg%.svg}.pdf" "$svg"
done
perl -0pi -e 's/\{([^{}]+)\}\.svg/\{$1\}.pdf/g' ./*.tex
- run: make
- uses: actions/upload-artifact@master
with:
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/transifex-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
branches:
- master
paths:
- '.github/workflows/transifex-pull.yml'
- ".github/workflows/transifex-pull.yml"
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
workflow_dispatch:

permissions:
Expand All @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ '3.14' ]
version: ["3.15"]
steps:
- uses: styfle/cancel-workflow-action@main
with:
Expand All @@ -34,10 +34,20 @@ jobs:
pip install requests cogapp polib transifex-python sphinx-intl blurb six
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
working-directory: /usr/local/bin
- name: Resolve base ref
id: base-ref
run: |
if git ls-remote --exit-code --heads "https://github.com/${{ github.repository }}.git" "${{ matrix.version }}" >/dev/null; then
echo "ref=${{ matrix.version }}" >> "$GITHUB_OUTPUT"
else
echo "ref=${{ github.event.repository.default_branch }}" >> "$GITHUB_OUTPUT"
fi
- uses: actions/checkout@master
with:
ref: ${{ matrix.version }}
ref: ${{ steps.base-ref.outputs.ref }}
fetch-depth: 0
- name: Ensure target branch
run: git switch -C "${{ matrix.version }}"
- run: curl -O https://raw.githubusercontent.com/python-docs-translations/transifex-automations/master/sample-workflows/transifex-util.py
- run: chmod +x transifex-util.py
- run: ./transifex-util.py recreate_tx_config --language vi --project-slug python-newest --version ${{ matrix.version }}
Expand Down
Loading