Skip to content

ci: fix tests workflow building PsychoPy + bump action versions#1

Merged
ericwang401 merged 1 commit into
mainfrom
ci-fix-no-sync
Jun 15, 2026
Merged

ci: fix tests workflow building PsychoPy + bump action versions#1
ericwang401 merged 1 commit into
mainfrom
ci-fix-no-sync

Conversation

@ericwang401

Copy link
Copy Markdown
Contributor

Problem

Both tests and release-check workflows were failing. Root cause was the tests workflow, not the code.

The workflow installs the package without heavy deps (uv pip install --no-deps -e .) to skip PsychoPy, but the lint/test steps ran uv run ruff check . / uv run pytest. uv run re-syncs the full dependency tree by default, pulling in psychopywxpython==4.2.5, which fails to build on the Ubuntu runner (ERROR: failed building wxWidgets).

Fix

  • Add --no-sync to both uv run invocations so they use the no-deps venv.
  • Bump actions/checkout@v4v5 and astral-sh/setup-uv@v5v6 (Node 20 deprecation, enforced June 16).

Verified locally by reproducing the exact CI steps: ruff passes, 6 tests pass.

uv run re-syncs the full dependency tree by default, which pulled in
psychopy/wxpython and failed to build on CI despite the --no-deps install.
Add --no-sync to the ruff/pytest invocations so they use the no-deps venv.

Also bump checkout v4->v5 and setup-uv v5->v6 (Node 20 deprecation).
@ericwang401 ericwang401 merged commit 209bc49 into main Jun 15, 2026
3 checks passed
@ericwang401 ericwang401 deleted the ci-fix-no-sync branch June 15, 2026 18:06
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