Skip to content

Commit

Permalink
ci: use uv in place of pip to speed up installing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wookayin committed Jan 23, 2025
1 parent 116d087 commit 8aa9ea9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Upgrade pip
run: |
python -m pip install -U pip
- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Configure environments
run: |
python --version
- name: Install dependencies
run: |
pip install -e ".[test]"
uv pip install -e ".[test]"
python -m imgcat --version
- name: Run tests
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def read_version():

tests_requires = [
'pytest',
'numpy',
'torch',
'tensorflow>=2.0',
'numpy>=1.21,<2.0',
'torch>=2.0,<3.0',
'tensorflow>=2.0,<3.0',
'matplotlib>=3.3',
'Pillow',
]
Expand Down

0 comments on commit 8aa9ea9

Please sign in to comment.