Skip to content

Commit c7b1d76

Browse files
committed
enable external tests back and remove deepsparse
1 parent 29ea683 commit c7b1d76

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

.github/workflows/unit_tests.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -79,36 +79,36 @@ jobs:
7979
path: |
8080
test_logs/*
8181
82-
# testmodels:
83-
# name: External LM Tests
84-
# runs-on: ubuntu-latest
85-
# timeout-minutes: 30
86-
# steps:
87-
# - name: Checkout Code
88-
# uses: actions/checkout@v4
89-
# - name: Set up Python 3.9
90-
# uses: actions/setup-python@v5
91-
# with:
92-
# python-version: 3.9
93-
# cache: pip
94-
# cache-dependency-path: pyproject.toml
95-
#
96-
# # Cache HuggingFace cache directory for External LM tests
97-
# - name: Cache HuggingFace cache (External LM tests)
98-
# uses: actions/cache@v3
99-
# id: cache-hf-lm
100-
# with:
101-
# path: ~/.cache/huggingface
102-
# key: ${{ runner.os }}-hf-cache-external-lm
103-
# restore-keys: |
104-
# ${{ runner.os }}-hf-cache-external-lm
105-
#
106-
# - name: Install dependencies
107-
# run: |
108-
# python -m pip install --upgrade pip
109-
# pip install -e '.[dev,optimum,deepsparse,sparseml,api]' --extra-index-url https://download.pytorch.org/whl/cpu
110-
# pip install -U transformers peft accelerate
111-
#
112-
# - name: Test with pytest
113-
# run: python -m pytest tests/models --showlocals -s -vv
114-
# continue-on-error: true # Continue workflow even if tests fail
82+
testmodels:
83+
name: External LM Tests
84+
runs-on: ubuntu-latest
85+
timeout-minutes: 30
86+
steps:
87+
- name: Checkout Code
88+
uses: actions/checkout@v4
89+
- name: Set up Python 3.9
90+
uses: actions/setup-python@v5
91+
with:
92+
python-version: 3.9
93+
cache: pip
94+
cache-dependency-path: pyproject.toml
95+
96+
# Cache HuggingFace cache directory for External LM tests
97+
- name: Cache HuggingFace cache (External LM tests)
98+
uses: actions/cache@v3
99+
id: cache-hf-lm
100+
with:
101+
path: ~/.cache/huggingface
102+
key: ${{ runner.os }}-hf-cache-external-lm
103+
restore-keys: |
104+
${{ runner.os }}-hf-cache-external-lm
105+
106+
- name: Install dependencies
107+
run: |
108+
python -m pip install --upgrade pip
109+
pip install -e '.[dev,optimum,sparseml,api]' --extra-index-url https://download.pytorch.org/whl/cpu
110+
pip install -U transformers peft accelerate
111+
112+
- name: Test with pytest
113+
run: python -m pytest tests/models --showlocals -s -vv
114+
continue-on-error: true # Continue workflow even if tests fail

0 commit comments

Comments
 (0)