Skip to content

Finance App 7

Finance App 7 #1315

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
UV_PYTHON: "3.11" # Pin every uv command to 3.11 (matches release.yml)
# Copy packages into the venv instead of hardlinking from uv's cache.
# setup-uv's cache restore can leave broken hardlinks, so a package
# imports at top level but is missing submodules/entry points (e.g.
# "Can't load plugin: sqlalchemy.dialects:sqlite"). Copy mode avoids it.
UV_LINK_MODE: "copy"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --all-extras
- name: Run linting
run: uv run ruff check .
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --all-extras
- name: Run type checking
run: uv run ty check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --all-extras
- name: Run tests
run: uv run pytest -n auto --dist=loadgroup -v -m "not slow"
test-uvx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Test uvx aegis help
run: uvx --from . aegis --help
- name: Test uvx aegis-stack help
run: uvx --from . aegis-stack --help
- name: Test project creation with uvx aegis
run: |
uvx --from . aegis init test-uvx-aegis --to-version HEAD --no-interactive --yes --force
test -d test-uvx-aegis
test -f test-uvx-aegis/pyproject.toml
- name: Test project creation with uvx aegis-stack
run: |
uvx --from . aegis-stack init test-uvx-aegis-stack --to-version HEAD --no-interactive --yes --force
test -d test-uvx-aegis-stack
test -f test-uvx-aegis-stack/pyproject.toml
- name: Verify generated project structure
run: |
cd test-uvx-aegis
test -d app/components/backend
test -d app/components/frontend
test -f app/entrypoints/webserver.py