Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
baberabb committed Dec 30, 2024
1 parent 87f1549 commit 681db53
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
name: Linters
runs-on: ubuntu-latest
timeout-minutes: 5
env:
UV_SYSTEM_PYTHON: 1
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -27,7 +25,7 @@ jobs:
env:
SKIP: "no-commit-to-branch,mypy"
run: |
uv pip install pre-commit
uv pip install pre-commit --system
pre-commit run --all-files
testcpu:
Expand All @@ -49,10 +47,8 @@ jobs:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Install dependencies
env:
UV_SYSTEM_PYTHON: 1
run: |
uv pip install -e '.[dev,sentencepiece,api]' --extra-index-url https://download.pytorch.org/whl/cpu
uv pip install -e '.[dev,sentencepiece,api]' --extra-index-url https://download.pytorch.org/whl/cpu --system
- name: Test with pytest
run: uv run pytest --showlocals -s -vv -n=auto --ignore=tests/models/test_neuralmagic.py --ignore=tests/models/test_openvino.py
- name: Archive artifacts
Expand All @@ -78,10 +74,8 @@ jobs:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Install dependencies
env:
UV_SYSTEM_PYTHON: 1
run: |
uv pip install -e '.[dev,optimum,deepsparse,sparseml,api]' --extra-index-url https://download.pytorch.org/whl/cpu
uv pip install -U transformers peft
uv pip install -e '.[dev,optimum,deepsparse,sparseml,api]' --extra-index-url https://download.pytorch.org/whl/cpu --system
uv pip install -U transformers peft --system
- name: Test with pytest
run: uv run pytest tests/models --showlocals -s -vv

0 comments on commit 681db53

Please sign in to comment.