chore(deps): bump actions/setup-python from 6 to 7 #18
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: CLI <-> Docs Consistency | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'docs/cli/**' | |
| - 'docs/providers/**' | |
| - 'docs/.vuepress/cli-version.json' | |
| - 'scripts/check_cli_docs.py' | |
| - 'scripts/check_providers.py' | |
| - 'scripts/cli-docs-allowlist.yml' | |
| - '.github/workflows/cli-consistency.yml' | |
| push: | |
| branches: [main] | |
| schedule: | |
| # Weekly Monday at 06:17 UTC. Catches the case where a new CLI release | |
| # ships on PyPI but no docs PR opens, by re-running against the same pin. | |
| - cron: '17 6 * * 1' | |
| workflow_dispatch: | |
| jobs: | |
| consistency: | |
| name: Verify docs match installed fluid CLI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: '3.11' | |
| - name: Resolve pinned CLI version | |
| id: pin | |
| run: | | |
| VERSION=$(python -c "import json; print(json.load(open('docs/.vuepress/cli-version.json'))['supportedCliVersion'])") | |
| INSTALL_SPEC=$(python -c "import json; d=json.load(open('docs/.vuepress/cli-version.json')); print(d.get('supportedCliInstallSpec') or 'data-product-forge==' + d['supportedCliVersion'])") | |
| echo "version=${VERSION}" >> "$GITHUB_OUTPUT" | |
| echo "install_spec=${INSTALL_SPEC}" >> "$GITHUB_OUTPUT" | |
| echo "Pinned CLI version: ${VERSION}" | |
| echo "Pinned CLI install spec: ${INSTALL_SPEC}" | |
| - name: Install fluid CLI | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install "${{ steps.pin.outputs.install_spec }}" | |
| fluid --version | |
| - name: Verify fluid --version matches pin | |
| run: python scripts/check_cli_docs.py --version-only | |
| - name: Verify documented commands match fluid --help | |
| run: python scripts/check_cli_docs.py | |
| - name: Verify documented providers match fluid providers | |
| run: python scripts/check_providers.py |