Bump astral-sh/setup-uv from 6.3.1 to 6.8.0 #124
Workflow file for this run
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
| # SPDX-FileCopyrightText: 2022 Contributors to the rez project | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: docs | |
| on: | |
| pull_request: | |
| paths: | |
| - '**/CHANGELOG.md' | |
| - 'docs/**' | |
| - '.github/workflows/docs.yaml' | |
| permissions: {} | |
| jobs: | |
| check-links: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| submodules: 'recursive' | |
| persist-credentials: false | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 | |
| with: | |
| python-version: 3.11 | |
| - name: Install dependencies | |
| run: | | |
| uv venv | |
| uv pip install -r docs/requirements.txt . | |
| - name: Linkcheck | |
| working-directory: docs | |
| run: | | |
| source ../.venv/bin/activate | |
| set +e | |
| make linkcheck | |
| exit_code=$? | |
| set -e | |
| if [ $exit_code -eq 0 ]; then | |
| echo -e "\n\n=================\nAll links are valid!" | |
| echo "# :heavy_check_mark: Sphinx links" >> $GITHUB_STEP_SUMMARY | |
| echo "All links are valid!" >> $GITHUB_STEP_SUMMARY | |
| else | |
| echo -e "\n\n=================\nFound broken links. Look at the build logs.\n" | |
| echo "# :x: Sphinx links" >> $GITHUB_STEP_SUMMARY | |
| echo "Found broken links. Look at the build logs for additional information." >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| cat build/linkcheck/output.txt >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| fi | |
| exit $exit_code | |
| check-warnings: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| submodules: 'recursive' | |
| persist-credentials: false | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 | |
| with: | |
| python-version: 3.11 | |
| - name: Install dependencies | |
| run: | | |
| uv venv | |
| uv pip install -r docs/requirements.txt . | |
| - name: Check warnings/errors | |
| working-directory: docs | |
| run: | | |
| source ../.venv/bin/activate | |
| set +e | |
| make htmlstrict | |
| exit_code=$? | |
| set -e | |
| if [ $exit_code -eq 0 ]; then | |
| echo -e "\n\n=================\nNo warnings or errors detected!" | |
| echo "# :heavy_check_mark: Sphinx warnings/errors" >> $GITHUB_STEP_SUMMARY | |
| echo "No errors or warnings detected!" >> $GITHUB_STEP_SUMMARY | |
| else | |
| echo -e "\n\n=================\nWarnings and or errors detected; See the summary bellow:\n" | |
| cat build/htmlstrict/output.txt | |
| echo "# :x: Sphinx warnings/errors" >> $GITHUB_STEP_SUMMARY | |
| echo "Found some warnings or errors:" >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| cat build/htmlstrict/output.txt >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| fi | |
| exit $exit_code |