Skip to content

chore(deps): update dependency python to v3.14.7 #49

chore(deps): update dependency python to v3.14.7

chore(deps): update dependency python to v3.14.7 #49

Workflow file for this run

name: test-template
on:
push:
branches: ["main"]
pull_request:
permissions:
contents: read
concurrency:
group: test-template-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.11", "3.12", "3.13"]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
version: "0.11.23"
enable-cache: true
python-version: ${{ matrix.python-version }}
- uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
- name: Install dependencies
run: uv sync --locked
- name: Run tests
run: uv run pytest
zizmor:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
version: "0.11.23"
enable-cache: true
- name: zizmor (workflow audit)
env:
GH_TOKEN: ${{ github.token }}
run: uvx zizmor@1.26.1 --persona=regular .
typecheck:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
version: "0.11.23"
enable-cache: true
- name: Install dependencies
run: uv sync --locked
- name: Type-check (basedpyright recommended)
run: uv run basedpyright
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
version: "0.11.23"
enable-cache: true
- name: Install dependencies
run: uv sync --locked
- name: Lint (ruff check, select=ALL)
run: uv run ruff check .
- name: Format check (ruff format --check)
run: uv run ruff format --check .
scan:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# Full history so gitleaks can catch secrets committed then deleted.
fetch-depth: 0
persist-credentials: false
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
version: "0.11.23"
enable-cache: true
- name: pip-audit
run: |
uv export --frozen --no-emit-project --no-hashes -o requirements-audit.txt
uvx pip-audit@2.10.1 -r requirements-audit.txt
- name: semgrep
run: uvx semgrep@1.167.0 scan --config .semgrep.yml --metrics=off --error .
# gitleaks is installed from the mise.toml pin (single source of truth);
# install: false brings up the mise CLI only.
- uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
with:
install: false
- name: gitleaks
run: |
mise install gitleaks
mise exec -- gitleaks git . --redact --exit-code 1