Skip to content

build(deps): bump actions/checkout from 4 to 6 (#9) #27

build(deps): bump actions/checkout from 4 to 6 (#9)

build(deps): bump actions/checkout from 4 to 6 (#9) #27

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv sync --group dev
- name: Run tests
run: uv run pytest tests/ -v --tb=short
- name: Run tests with coverage
if: matrix.python-version == '3.12'
run: uv run pytest tests/ --cov=worktreeflow --cov-report=term-missing --cov-fail-under=35
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv sync --group dev
- name: Run ruff check
run: uv run ruff check src/ tests/
- name: Run ruff format check
run: uv run ruff format --check src/ tests/
- name: Run pip-audit
run: uv export --no-hashes --format requirements.txt | uv run pip-audit -r /dev/stdin
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv sync --group dev
- name: Run ty
run: uv run ty check src/worktreeflow/