Skip to content

fix: v0.3.1 — security and quality fixes from audit #163

fix: v0.3.1 — security and quality fixes from audit

fix: v0.3.1 — security and quality fixes from audit #163

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --extra dev
- name: Lint (ruff)
run: uv run ruff check src/ tests/
- name: Format check (ruff)
run: uv run ruff format --check src/ tests/
- name: Type check (mypy)
run: uv run mypy src/
- name: Test with coverage (pytest)
run: |
uv run pytest tests/unit tests/security \
--cov=src/tengu \
--cov-report=term-missing \
--cov-report=xml \
--cov-fail-under=80 \
-v --tb=short
- name: Upload coverage report
uses: actions/upload-artifact@v7
if: matrix.python-version == '3.12'
with:
name: coverage-report
path: coverage.xml
retention-days: 7