Skip to content

Locks python dependencies for CI into a requirements.txt file and cache the dependencies#1037

Open
n0madsky wants to merge 2 commits intoSemiAnalysisAI:mainfrom
n0madsky:add-utils-requirements
Open

Locks python dependencies for CI into a requirements.txt file and cache the dependencies#1037
n0madsky wants to merge 2 commits intoSemiAnalysisAI:mainfrom
n0madsky:add-utils-requirements

Conversation

@n0madsky
Copy link
Copy Markdown

Summary

Consolidate the CI-side Python dependency installs for utils/ into a shared utils/requirements.txt file, and update the affected workflows to install from that file instead of using scattered ad-hoc pip install commands.

This also makes the Python setup more consistent across the touched workflows by adding actions/setup-python and pip caching where appropriate, broadens the targeted test workflow triggers so requirements changes are exercised, and cleans up a few simple workflow shellcheck issues.

Changes

  • Rewrite utils/requirements.txt to use direct exact pins for the shared CI/test dependencies
  • Replace scattered workflow pip install ... usage with pip install -r utils/requirements.txt
  • Add actions/setup-python to affected ubuntu-latest jobs that run Python or pip
  • Add pip caching using utils/requirements.txt as the dependency path
  • Update test-process-result.yml and test-matrix-logic.yml to trigger when utils/requirements.txt changes
  • Clean up a few simple shellcheck-style issues in workflow run: steps

Validation

  • Verified the exact pins install and import successfully in python:3.12-slim
  • Ran the Docker-based matrix_logic pytest suite successfully
  • actionlint runs and reports only remaining shellcheck findings in existing complex workflow shell blocks

n0mad and others added 2 commits April 16, 2026 17:38
Captures all dependencies needed by utils/ scripts (pydantic, pyyaml,
tabulate, pytest and transitive deps) which were previously only declared
implicitly in CI workflow files. Frozen from .venv on Python 3.14.4.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- rewrite `utils/requirements.txt` to direct exact pins
- replace scattered workflow `pip install` commands with
  `pip install -r utils/requirements.txt`
- add `setup-python` and pip caching to affected ubuntu-latest jobs
- widen targeted test workflow triggers for requirements changes
- clean up a few simple workflow shellcheck issues
@n0madsky n0madsky force-pushed the add-utils-requirements branch from 79be5ff to 1640e0f Compare April 16, 2026 07:39
@n0madsky n0madsky marked this pull request as ready for review April 16, 2026 07:42
@n0madsky n0madsky requested a review from a team April 16, 2026 07:42
Copy link
Copy Markdown
Contributor

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant