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

ci: Use uv for all pip installs #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

ci: Use uv for all pip installs #50

wants to merge 1 commit into from

Conversation

matthewfeickert
Copy link
Member

  • Use 'uv pip' for all calls to 'pip install' in CI workflows.
  • Use 'pytest' over 'python -m pytest' as calling pytest as a main module also includes the current directory on the path.

@matthewfeickert matthewfeickert self-assigned this May 7, 2024
Comment on lines +67 to +68
- name: Install uv
run: python -m pip install --upgrade uv
Copy link
Member Author

Choose a reason for hiding this comment

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

This is split out into its own step as "Install old NumPy" doesn't run for some jobs.


- name: Print NumPy version
run: python -c 'import numpy as np; print(np.__version__)'

- name: Test package
run: >-
python -m pytest -ra --cov --cov-report=xml --cov-report=term
--durations=20
pytest -ra --cov --cov-report=xml --cov-report=term --durations=20
Copy link
Member Author

Choose a reason for hiding this comment

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

As this is non-atomic, if it is preferred to not have it in this PR that's fine.

* Use 'uv pip' for all calls to 'pip install' in CI workflows.
   - c.f. https://github.com/astral-sh/uv/
* Use 'pytest' over 'python -m pytest' as calling pytest as a main
  module also includes the current directory on the path.
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