Skip to content

Commit

Permalink
pip => uv pip (#1799)
Browse files Browse the repository at this point in the history
* pip => uv pip

* removed uv pip cache

* Disabled caching

* Install uv packages in CI/CD to system

* Fix

* fix

* Fix

* Enabled wheels install

* Fix

* Removed requirement for package versions

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* github

* FIx

* Fix

* Fix

* Fix

* Fix

* Fix
  • Loading branch information
ternaus committed Jun 19, 2024
1 parent a209d6a commit 9bf44fc
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@ on:
- main
paths-ignore:
- 'CONTRIBUTORS.md'
- 'benchmark/**'

jobs:
test_and_lint:
name: Test and lint
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-13]
operating-system: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
include:
- operating-system: ubuntu-latest
path: ~/.cache/pip
- operating-system: windows-latest
path: ~\AppData\Local\pip\Cache
- operating-system: macos-13
- operating-system: macos-latest
path: ~/Library/Caches/pip
fail-fast: true
steps:
Expand All @@ -41,25 +42,27 @@ jobs:
- name: Update pip
run: |
python -m pip install --upgrade pip
pip cache purge
python -m pip install --upgrade pip uv
- name: Update pip
run: |
python -m pip install --upgrade uv
- name: Install wheel
run: python -m pip install --upgrade wheel
run: uv pip install --system --upgrade wheel
- name: Install PyTorch on Linux and Windows
if: >
matrix.operating-system == 'ubuntu-latest' ||
matrix.operating-system == 'windows-latest'
run: >
pip install torch==2.2.0 torchvision==0.17.0
--extra-index-url https://download.pytorch.org/whl/cpu
uv pip install --system --verbose torch==2.3.0+cpu torchvision==0.18.0+cpu --extra-index-url https://download.pytorch.org/whl/cpu
- name: Install PyTorch on MacOS
if: matrix.operating-system == 'macos-13'
run: pip install torch==2.2.0 torchvision==0.17.0
if: matrix.operating-system == 'macos-latest'
run: >
uv pip install --system --verbose torch==2.3.0 torchvision==0.18.0
- name: Install dev requirements
run: pip install -r requirements-dev.txt
run: uv pip install --system -r requirements-dev.txt
- name: Install dependencies
run: |
pip install .
uv pip install --system .
- name: Cleanup the build directory
uses: JesseTG/[email protected]
with:
Expand Down Expand Up @@ -91,10 +94,10 @@ jobs:
run: cat codecov.yaml | curl --data-binary @- https://codecov.io/validate
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install .
python -m pip install --upgrade pip uv
uv pip install --system .
- name: Install dev requirements
run: pip install -r requirements-dev.txt
run: uv pip install --system -r requirements-dev.txt
- name: Run checks
run: pre-commit run --files $(find albumentations -type f)
- name: check-defaults-in-apply
Expand All @@ -115,9 +118,9 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install requests
pip install .
python -m pip install --upgrade pip uv
uv pip install --system requests
uv pip install --system .
- name: Run checks for documentation
run: python -m tools.make_transforms_docs check README.md
- name: Run checks for used by documentation
Expand Down

0 comments on commit 9bf44fc

Please sign in to comment.