Bump actions/download-artifact from 4.3.0 to 7.0.0 #454
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
| # Built from: | |
| # https://docs.github.com/en/actions/guides/building-and-testing-python | |
| --- | |
| name: Build and test | |
| on: # yamllint disable-line rule:truthy | |
| push: | |
| branches: [main] | |
| pull_request: | |
| env: | |
| FORCE_COLOR: "1" # Make tools pretty. | |
| permissions: {} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.13"] | |
| fail-fast: false | |
| steps: | |
| # https://github.com/actions/checkout | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Check for changes | |
| uses: dorny/paths-filter@v3 | |
| id: changes | |
| with: | |
| list-files: shell | |
| filters: | | |
| src: | |
| - 'src/**' | |
| - 'tests/**' | |
| - 'pyproject.toml' | |
| - 'uv.lock' | |
| kb: | |
| - 'kb/**/*.yaml' | |
| # https://github.com/astral-sh/setup-uv | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| # https://github.com/actions/setup-python | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5.6.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install just | |
| run: | | |
| uv tool install rust-just | |
| - name: Install project | |
| run: uv sync --dev | |
| - name: Validate changed KB files | |
| if: steps.changes.outputs.kb == 'true' | |
| run: | | |
| echo "Validating changed KB files..." | |
| for f in ${{ steps.changes.outputs.kb_files }}; do | |
| echo "=== Validating: $f ===" | |
| just validate "$f" | |
| done | |
| - name: Run test suite | |
| if: steps.changes.outputs.src == 'true' | |
| run: just test |