-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
1 changed file
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|