Skip to content

Fix CPU workflow dependency cache - #39

Merged
JusperLee merged 1 commit into
JusperLee:mainfrom
Djshinshin:codex/fix-cpu-unit-test-cache
Aug 14, 2026
Merged

JusperLee merged 1 commit into
JusperLee:mainfrom
Djshinshin:codex/fix-cpu-unit-test-cache

Conversation

@Djshinshin

Copy link
Copy Markdown
Contributor

Summary

  • Point actions/setup-python@v5 at the existing requirements-macos-arm64.txt file when computing the pip cache key.
  • Keep the CPU unit-test job and dependency installation unchanged.

Root cause

The workflow enabled cache: pip, but this repository does not have a default requirements.txt or pyproject.toml. setup-python therefore stopped before dependency installation or tests with:

No file ... matched to [**/requirements.txt or **/pyproject.toml]

Specifying the existing dependency file gives the cache action a stable, valid input without broadening the workflow.

Validation

  • python -m py_compile inference.py tests/test_inference.py
  • python -m unittest discover -s tests -v: 14/14 passed
  • python -m pip check
  • git diff --check
  • Confirmed cache-dependency-path is a supported actions/setup-python@v5 input and that requirements-macos-arm64.txt exists.

This is a one-line workflow-only follow-up to #38.

@JusperLee
JusperLee marked this pull request as ready for review August 14, 2026 06:35
@JusperLee
JusperLee merged commit be0a056 into JusperLee:main Aug 14, 2026
1 check 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.

2 participants