Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 8 additions & 1 deletion .github/workflows/quality-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
branches: [ main , 'release/*' ]
pull_request:
branches: [ main, 'release/*' ]

env:
UV_SYSTEM_PYTHON: 1
UV_TORCH_BACKEND: "auto"

jobs:
quality-check:
runs-on: ubuntu-22.04
Expand All @@ -12,7 +17,9 @@ jobs:
with:
python-version: '3.10'
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: "⚙️ Install dependencies"
run: pip3 install .[dev]
run: uv pip install .[dev]
- name: "🧹 Running quality checks"
run: make quality
10 changes: 7 additions & 3 deletions .github/workflows/test-check-transformers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
env:
CADENCE: "commit"
HF_TOKEN: ${{ secrets.HF_TOKEN_READ }}
UV_SYSTEM_PYTHON: 1
UV_TORCH_BACKEND: "auto"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -65,8 +67,10 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: "⚙️ Install dependencies"
run: pip3 install -U pip setuptools && pip3 install .[dev]
run: uv pip install .[dev]
- uses: actions/checkout@v4
with:
repository: "neuralmagic/compressed-tensors"
Expand All @@ -76,10 +80,10 @@ jobs:
- name: "⚙️ Install compressed-tensors dependencies"
id: install
run: |
pip3 uninstall -y compressed-tensors
uv pip uninstall compressed-tensors
export GIT_CEILING_DIRECTORIES="$(pwd)"
cd compressed-tensors
BUILD_TYPE=nightly pip3 install .
BUILD_TYPE=nightly uv pip install .
- name: "Clean compressed-tensors directory"
run: rm -r compressed-tensors/
- name: "⚙️ Prepare code coverage"
Expand Down
25 changes: 16 additions & 9 deletions .github/workflows/test-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:

env:
CADENCE: "commit"
UV_SYSTEM_PYTHON: 1
UV_TORCH_BACKEND: "auto"

jobs:

Expand All @@ -28,8 +30,10 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: "⚙️ Install dependencies"
run: pip3 install -U pip setuptools && pip3 install .[dev]
run: uv pip install .[dev]
- uses: actions/checkout@v4
with:
repository: "neuralmagic/compressed-tensors"
Expand All @@ -38,10 +42,10 @@ jobs:
fetch-tags: true
- name: "⚙️ Install compressed-tensors dependencies"
run: |
pip3 uninstall -y compressed-tensors
uv pip uninstall compressed-tensors
export GIT_CEILING_DIRECTORIES="$(pwd)"
cd compressed-tensors
BUILD_TYPE=nightly pip3 install .
BUILD_TYPE=nightly uv pip install .
- name: "Clean compressed-tensors directory"
run: rm -r compressed-tensors/
- name: "⚙️ Prepare code coverage"
Expand Down Expand Up @@ -77,8 +81,10 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: "⚙️ Install dependencies"
run: pip3 install -U pip setuptools && pip3 install .[dev]
run: uv pip install .[dev]
- uses: actions/checkout@v4
with:
repository: "neuralmagic/compressed-tensors"
Expand All @@ -87,10 +93,10 @@ jobs:
fetch-tags: true
- name: "⚙️ Install compressed-tensors dependencies"
run: |
pip3 uninstall -y compressed-tensors
uv pip uninstall compressed-tensors
export GIT_CEILING_DIRECTORIES="$(pwd)"
cd compressed-tensors
BUILD_TYPE=nightly pip3 install .
BUILD_TYPE=nightly uv pip install .
- name: "Clean compressed-tensors directory"
run: rm -r compressed-tensors/
- name: "⚙️ Prepare code coverage"
Expand Down Expand Up @@ -131,11 +137,12 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install uv
uses: astral-sh/setup-uv@v6
- name: "Install dependencies"
run: |
pip3 install -U pip setuptools
pip3 install coverage setuptools-scm
uv pip install -U setuptools
uv pip install coverage setuptools-scm
make build # need to build to generate the version.py file

- name: "Combine and report coverage"
Expand Down