Skip to content

(github) Rework CI workflows to use uv-managed venv with Python 3.12.10#16

Merged
ahyangyi merged 3 commits intomainfrom
copilot/rework-github-workflow-for-python
Mar 23, 2026
Merged

(github) Rework CI workflows to use uv-managed venv with Python 3.12.10#16
ahyangyi merged 3 commits intomainfrom
copilot/rework-github-workflow-for-python

Conversation

Copy link
Contributor

Copilot AI commented Mar 23, 2026

  • Investigate CI failures — uv run fails because requires-python >= 3.9 conflicts with grf>=3.12.10
  • Update requires-python in pyproject.toml from >=3.9 to >=3.12.10
  • Update build.yml — activate venv via GITHUB_ENV/GITHUB_PATH
  • Update unit-tests.yml — activate venv, use direct pytest command
  • Update sphinx-gh-pages.yml — activate venv, use direct make doc command
  • Run code review and security checks — no issues

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Replace system Python + pip/poetry/setuptools with uv in all three
workflow files (build.yml, unit-tests.yml, sphinx-gh-pages.yml).

This fixes CI failures caused by grf-py requiring Python >=3.12.10,
which the base Ubuntu image does not provide.

Co-authored-by: ahyangyi <700956+ahyangyi@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ahyangyi/agrf/sessions/9fd65e7f-8147-4fd6-8915-7aa797c78ddb
Copilot AI changed the title [WIP] Update CI workflow to use Python 3.12.10 in venv Rework CI workflows to use uv-managed venv with Python 3.12.10 Mar 23, 2026
Copilot AI requested a review from ahyangyi March 23, 2026 08:41
Fix CI failures where `uv run` re-resolved dependencies against
requires-python>=3.9, conflicting with grf-py's >=3.12.10 requirement.

- Activate venv via GITHUB_ENV/GITHUB_PATH so subsequent steps use it
- Update requires-python to >=3.12.10 to match grf-py requirement
- Use direct pytest/make commands since venv is activated

Co-authored-by: ahyangyi <700956+ahyangyi@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ahyangyi/agrf/sessions/50cc3807-9657-4883-befe-6f5c5e55cadb
@ahyangyi ahyangyi marked this pull request as ready for review March 23, 2026 11:12
@ahyangyi ahyangyi changed the title Rework CI workflows to use uv-managed venv with Python 3.12.10 (github) Rework CI workflows to use uv-managed venv with Python 3.12.10 Mar 23, 2026
@ahyangyi ahyangyi merged commit d97ada7 into main Mar 23, 2026
3 checks passed
@ahyangyi ahyangyi deleted the copilot/rework-github-workflow-for-python branch March 23, 2026 11:12
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.

2 participants