-
Notifications
You must be signed in to change notification settings - Fork 1
Fix pip install command for test dependencies #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Ensure pytest installs in macOS CI - Require test extras install without ignoring failures
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a51c2b896e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| run: | | ||
| python -m pip install -e . | ||
| python -m pip install -e ".[test]" || true | ||
| python -m pip install -e ".[test]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid failing CI on undefined test extra
This now fails the macOS workflow because pyproject.toml defines only dev and docs under [project.optional-dependencies] (no test extra). With || true removed, pip install -e ".[test]" will exit non‑zero on every run, stopping the job before tests. If the intent is to install pytest, this should use the existing .[dev] extra or add a test extra to pyproject.toml.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR removes the || true suffix from the pip install command for test dependencies in the macOS CI workflow, ensuring that failures during test dependency installation will cause the CI step to fail rather than being silently ignored.
Changes:
- Removed
|| truefrom the test dependencies installation command to enforce proper installation
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| run: | | ||
| python -m pip install -e . | ||
| python -m pip install -e ".[test]" || true | ||
| python -m pip install -e ".[test]" |
Copilot
AI
Jan 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The extras group "test" does not exist in pyproject.toml. The available extras are "dev", "docs", and "reports". Since the workflow runs pytest, this should likely be changed to ".[dev]" to install pytest and related testing dependencies, matching the pattern used in daily-build.yml workflow.
| python -m pip install -e ".[test]" | |
| python -m pip install -e ".[dev]" |
Ensure pytest installs in macOS CI