Skip to content
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

[Q&A] CI, pytest and extra vs env. #10677

Open
ego-thales opened this issue Jan 16, 2025 · 0 comments
Open

[Q&A] CI, pytest and extra vs env. #10677

ego-thales opened this issue Jan 16, 2025 · 0 comments

Comments

@ego-thales
Copy link

Hello,

I have trouble understanding the content of the virtual environment used when running uv run pytest. Namely, during my CI pipeline, I test

  • build
  • install
  • pytest

And I want to test installed package. What would be the way to do so?

For example, is the following what I want?

uv build
uv pip install dist/my-wheel.whl[extra]
uv run pytest

I'm not at all sure what to do. What's confusing to me is that the uv doc clearcly states that dev dependencies are installed by default in the virtual environment, but there's no similar mention for extras (whether they're installed).

Thanks in advance.

@ego-thales ego-thales changed the title CI, pytest and extra vs env. [Q&A] CI, pytest and extra vs env. Jan 16, 2025
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

No branches or pull requests

1 participant