This repository was archived by the owner on Jul 2, 2026. It is now read-only.
chore(deps): bump actions/upload-artifact from 4 to 7 #4
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
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python 3.14 | |
| run: uv python install 3.14 | |
| - name: Install task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup | |
| run: uv sync --group dev | |
| - name: Lint | |
| run: task lint | |
| test: | |
| name: test (${{ matrix.os }} / py${{ matrix.python-version }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.10", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup | |
| run: uv sync --group dev | |
| - name: Unit tests | |
| run: task test:unit | |
| cov: | |
| name: coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python 3.14 | |
| run: uv python install 3.14 | |
| - name: Install task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup | |
| run: uv sync --group dev | |
| - name: Coverage | |
| run: task cov | |
| - name: Upload coverage artifact | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage | |
| path: | | |
| .coverage | |
| htmlcov/ | |
| if-no-files-found: ignore | |
| audit: | |
| name: audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python 3.14 | |
| run: uv python install 3.14 | |
| - name: Install task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup | |
| run: uv sync --group dev | |
| - name: pip-audit + bandit | |
| run: task audit | |
| shell-syntax: | |
| name: shell-syntax | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Bash syntax check | |
| run: | | |
| set -e | |
| for f in lib/*.sh hooks/*/run.sh scripts/*.sh; do | |
| [ -f "$f" ] || continue | |
| bash -n "$f" | |
| done | |
| echo "shell syntax ok" | |
| hooks-smoke: | |
| name: hooks-smoke | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Smoke-test every hook against its tests/ fixtures | |
| run: bash scripts/smoke_hooks.sh | |
| prek-dogfood: | |
| name: prek-dogfood | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python 3.14 | |
| run: uv python install 3.14 | |
| - name: Install task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install prek | |
| run: uv tool install prek | |
| - name: Setup | |
| run: uv sync --group dev | |
| - name: prek run --all-files | |
| run: uv tool run prek run --all-files --show-diff-on-failure |