| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,31 +9,29 @@ on: | |||
| 9 | 9 | - cron: '34 12 * * SAT' | |
| 10 | 10 | push: | |
| 11 | 11 | branches: | |
| 12 | - - '*' | ||
| 12 | + - '3.15' | ||
| 13 | 13 | workflow_dispatch: | |
| 14 | 14 | ||
| 15 | 15 | permissions: | |
| 16 | 16 | contents: read | |
| 17 | 17 | ||
| 18 | + env: | ||
| 19 | + CPYTHON_BRANCH: '3.15' | ||
| 20 | + | ||
| 18 | 21 | jobs: | |
| 19 | 22 | build-translation: | |
| 20 | 23 | runs-on: ubuntu-latest | |
| 21 | - strategy: | ||
| 22 | - fail-fast: false | ||
| 23 | - matrix: | ||
| 24 | - version: [ '3.15', '3.14', '3.13' ] | ||
| 25 | - format: [ html ] | ||
| 26 | 24 | steps: | |
| 27 | 25 | - name: Set up Python | |
| 28 | 26 | uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| 29 | 27 | with: | |
| 30 | - python-version: ${{ matrix.version }} | ||
| 28 | + python-version: ${{ env.CPYTHON_BRANCH }} | ||
| 31 | 29 | allow-prereleases: true | |
| 32 | 30 | - name: Check out CPython | |
| 33 | 31 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| 34 | 32 | with: | |
| 35 | 33 | repository: python/cpython | |
| 36 | - ref: ${{ matrix.version }} | ||
| 34 | + ref: ${{ env.CPYTHON_BRANCH }} | ||
| 37 | 35 | persist-credentials: false | |
| 38 | 36 | - name: Install uv for CPython's locked documentation dependencies | |
| 39 | 37 | run: python -m pip install uv | |
@@ -44,39 +42,35 @@ jobs: | |||
| 44 | 42 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| 45 | 43 | with: | |
| 46 | 44 | # Check the triggering commit when it belongs to this version. | |
| 47 | - ref: ${{ matrix.version == github.ref_name && github.sha || matrix.version }} | ||
| 45 | + ref: ${{ env.CPYTHON_BRANCH == github.ref_name && github.sha || env.CPYTHON_BRANCH }} | ||
| 48 | 46 | path: Doc/locales/ja/LC_MESSAGES | |
| 49 | 47 | persist-credentials: false | |
| 50 | 48 | - uses: sphinx-doc/github-problem-matcher@1f74d6599f4a5e89a20d3c99aab4e6a70f7bda0f # v1.1 | |
| 51 | 49 | - name: Build Japanese documentation | |
| 52 | - run: make -e SPHINXOPTS="--color -D language=ja -W --keep-going" ${{ matrix.format }} | ||
| 50 | + run: make -e SPHINXOPTS="--color -D language=ja -W --keep-going" html | ||
| 53 | 51 | working-directory: ./Doc | |
| 54 | 52 | - name: Upload documentation | |
| 55 | 53 | uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 | |
| 56 | 54 | if: success() || failure() | |
| 57 | 55 | with: | |
| 58 | - name: build-${{ matrix.version }}-${{ matrix.format }} | ||
| 59 | - path: Doc/build/${{ matrix.format }} | ||
| 56 | + name: build-${{ env.CPYTHON_BRANCH }}-html | ||
| 57 | + path: Doc/build/html | ||
| 60 | 58 | ||
| 61 | 59 | lint: | |
| 62 | 60 | runs-on: ubuntu-latest | |
| 63 | - strategy: | ||
| 64 | - fail-fast: false | ||
| 65 | - matrix: | ||
| 66 | - version: [ '3.15', '3.14', '3.13' ] | ||
| 67 | 61 | continue-on-error: true | |
| 68 | 62 | steps: | |
| 69 | 63 | - name: Set up Python | |
| 70 | 64 | uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| 71 | 65 | with: | |
| 72 | - python-version: ${{ matrix.version }} | ||
| 66 | + python-version: ${{ env.CPYTHON_BRANCH }} | ||
| 73 | 67 | allow-prereleases: true | |
| 74 | 68 | - name: Install sphinx-lint | |
| 75 | 69 | run: python -m pip install sphinx-lint | |
| 76 | 70 | - name: Check out translations | |
| 77 | 71 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| 78 | 72 | with: | |
| 79 | - ref: ${{ matrix.version == github.ref_name && github.sha || matrix.version }} | ||
| 73 | + ref: ${{ env.CPYTHON_BRANCH == github.ref_name && github.sha || env.CPYTHON_BRANCH }} | ||
| 80 | 74 | persist-credentials: false | |
| 81 | 75 | - uses: rffontenelle/sphinx-lint-problem-matcher@4270bf50b2c93640a7cbb231c09f8e694699af9f # v1.0.0 | |
| 82 | 76 | - run: sphinx-lint | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,7 +74,7 @@ jobs: | |||
| 74 | 74 | needs: [update] | |
| 75 | 75 | strategy: | |
| 76 | 76 | matrix: | |
| 77 | - branch: [ "3.14", "3.13", "3.12", "3.11" ] | ||
| 77 | + branch: [ "3.14", "3.13" ] | ||
| 78 | 78 | ||
| 79 | 79 | runs-on: ubuntu-latest | |
| 80 | 80 | permissions: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments