Skip to content

ci: switch to uv and add monthly latest-deps check - #39

Merged
yuriyzubov merged 2 commits into
mainfrom
ci/use-uv
Oct 28, 2026
Merged

yuriyzubov merged 2 commits into
mainfrom
ci/use-uv

Conversation

@yuriyzubov

@yuriyzubov yuriyzubov commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Switches CI from pip to uv, and adds a monthly test against the newest dependency releases.

CI (ci.yaml)

  • astral-sh/setup-uv@v6 replaces actions/setup-python. It installs uv and Python 3.12, and caches packages between runs.
  • uv sync --locked --extra test replaces pip install .[test]. CI now installs the exact versions in uv.lock, so it tests the same environment as local runs.
  • --locked fails if uv.lock is out of date with pyproject.toml. This check would have found the missing ome-zarr-models entry that chore: sync uv.lock and pixi.lock #38 fixed.

Monthly check (latest-deps.yaml)

  • Runs at 06:00 UTC on the 1st of each month, and on demand from the Actions tab.
  • uv sync --upgrade resolves the newest versions that pyproject.toml allows, which is what a new pip install zarrify gets. The lock change stays in that run only.
  • Prints the changed packages, then runs the tests. On failure, GitHub sends an email to the person who last changed the schedule.
  • GitHub turns off scheduled workflows after 60 days with no repository activity. If that happens, turn it on again in the Actions tab.

Tests (local, same commands as CI)

  • uv sync --locked --extra test + uv run pytest: 45 passed.
  • uv sync --upgrade --extra test + uv run pytest: 45 passed.

yuriyzubov and others added 2 commits October 28, 2026 16:41
Replace pip with astral-sh/setup-uv. uv sync --locked installs the exact
versions in uv.lock, so CI tests the same environment as local runs, and
fails if uv.lock is out of date with pyproject.toml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI installs from uv.lock, so it no longer sees new upstream releases.
This workflow runs on the 1st of each month (and on demand), resolves
the newest versions pyproject.toml allows, and runs the tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yuriyzubov yuriyzubov closed this Oct 28, 2026
@yuriyzubov yuriyzubov reopened this Oct 28, 2026
@yuriyzubov
yuriyzubov merged commit 4d995d3 into main Oct 28, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant