diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eaca4c6..b8cd958 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,5 @@ name: CI -# Action SHAs are pinned, not floating tags. To bump: -# gh api repos///commits/ --jq .sha -# (use /commits/, NOT /git/refs/tags/ — annotated tags would -# return the tag-object SHA, which Actions can't resolve.) -# Update the comment on the right with the new tag for traceability. - on: push: branches: [develop, main] @@ -13,109 +7,7 @@ on: branches: [develop, main] jobs: - lint: - name: Lint & Format - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - - uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5 - - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 - with: - python-version: "3.14" - - run: uv sync --frozen --extra dev - - run: uv run ruff check . - - run: uv run ruff format --check . - - typecheck: - name: Type Check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - - uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5 - - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 - with: - python-version: "3.14" - - run: uv sync --frozen --extra dev - - run: uv run mypy --strict src/ tests/ - - test-unit: - name: Unit tests - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - - uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5 - - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 - with: - python-version: "3.14" - - run: uv sync --frozen --extra dev - - run: uv run pytest tests/ -v -m "not integration" -o "addopts=" - - coverage: - name: Coverage - runs-on: ubuntu-latest - # Runs the full suite with coverage. Until ticket #17 lands real source - # under src/, the template has no measurable coverage; pyproject.toml's - # [tool.coverage.report].fail_under stays at 75 (the eventual target), - # while CI uses --cov-fail-under=0 so the empty scaffold doesn't fail. - steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - - uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5 - - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 - with: - python-version: "3.14" - - run: uv sync --frozen --extra dev - - run: uv run pytest tests/ --cov=src --cov-report=term-missing --cov-fail-under=0 - - architecture: - name: Architecture (import-linter) - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - - uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5 - - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 - with: - python-version: "3.14" - - run: uv sync --frozen --extra dev - - run: uv run lint-imports - - pre-commit: - name: Pre-commit - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - - uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5 - - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 - with: - python-version: "3.14" - - run: uv sync --frozen --extra dev - - run: uv run pre-commit run --all-files --show-diff-on-failure - - frontend-build: - name: Frontend Build - runs-on: ubuntu-latest - if: hashFiles('frontend/package.json') != '' - steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 - with: - node-version: "24" - cache: npm - cache-dependency-path: frontend/package-lock.json - - run: cd frontend && npm ci && npm run build - - frontend-quality: - name: Frontend Quality + hello: runs-on: ubuntu-latest - if: hashFiles('frontend/package.json') != '' steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 - with: - node-version: "24" - cache: npm - cache-dependency-path: frontend/package-lock.json - - run: cd frontend && npm ci - - run: cd frontend && npm run lint - - run: cd frontend && npm run format:check - - run: cd frontend && npm run check - - run: cd frontend && npm run test + - run: echo "hello"