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

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,22 @@ jobs:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Install uv
run: python -m pip install --upgrade uv
jpivarski marked this conversation as resolved.
Show resolved Hide resolved

- name: Install old NumPy
if: matrix.numpy-version != 'latest'
run: python -m pip install numpy==${{ matrix.numpy-version }}
run: uv pip install --system numpy==${{ matrix.numpy-version }}

- name: Install package
run: python -m pip install .[test]
run: uv pip install --system '.[test]'

- 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
jpivarski marked this conversation as resolved.
Show resolved Hide resolved

- name: Upload coverage report
uses: codecov/[email protected]
Loading