Skip to content

ci: run the checks on locked dependencies #375

Closed

Description

@uniqueg

Problem

The lint, test, chart and docs jobs of .github/workflows/ci.yml install the app with pip install -e ".[dev]" / ".[docs]", which resolves the newest versions in the ranges of pyproject.toml. The repository has no lock file, so CI results depend on whatever was released last, a run can't be reproduced, and nothing is checked against hashes.

Relates to elixir-cloud-aai/cloud-registry#291 (the same change there, where the lock already existed).

Proposed fix

  • Lock all dependencies (runtime, dev and docs extras) in uv.lock with uv (a dev dependency, so that the lock also pins the uv version of CI); CI checks that the lock matches pyproject.toml (uv lock --check).
  • Install the lock in CI: astral-sh/setup-uv pinned by commit (version-file: uv.lock), then uv sync --locked --extra dev (--extra docs in docs), .venv/bin on the PATH.
  • Replace Dependabot's pip entry with a uv entry, which updates pyproject.toml and uv.lock together.
  • Tests in tests/test_workflows.py that the jobs install from the lock and no job installs unlocked packages.
  • Update the developer docs (docs/development.md) to set up the environment with uv sync --locked.

The image itself still installs from the ranges of pyproject.toml; installing it from the lock is #365, which this lock is a prerequisite for.

Acceptance criteria

  • The test jobs run on the versions of uv.lock; CI fails if the lock is out of date.
  • Dependabot's uv pull requests run the tests on the updated lock.
  • The developer docs describe the same install.

Activity

  1. added this to the v0.4.0 milestone on Nov 1, 2026
  2. added
    priority: low
    status: in progress
    type: ci / cd
    type: testing
    workload: hours
    on Nov 1, 2026
  3. removed
    status: in progress
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: lowtype: ci / cdtype: testingworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions