Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cherry Pick] Add python 3.11 to test-check.yaml (#1385) #1432

Merged
merged 1 commit into from
Nov 27, 2023
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
6 changes: 3 additions & 3 deletions .github/workflows/test-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, '3.10']
python-version: [3.8, 3.9, '3.11']
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -52,7 +52,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, '3.10']
python-version: [3.8, 3.9, '3.11']
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -97,6 +97,6 @@ jobs:
- name: "Clean sparsezoo directory"
run: rm -r sparsezoo/
- name: ⚙️ Install dependencies
run: pip install .[dev,server,image_classification,transformers,haystack]
run: pip install .[dev,haystack]
- name: Run integrations tests
run: make test_integrations
18 changes: 7 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,8 @@ def _parse_requirements_file(file_path):
"onnxruntime>=1.7.0",
]
_torch_deps = ["torch>=1.7.0,<=2.0"]
_image_classification_deps = [
"torchvision>=0.3.0,<0.14",
"opencv-python<=4.6.0.66",
]
_yolo_integration_deps = [
"torchvision>=0.3.0,<=0.15.1",
_computer_vision_deps = [
"torchvision>=0.3.0,<0.16",
"opencv-python<=4.6.0.66",
]
_openpifpaf_integration_deps = [
Expand All @@ -146,7 +142,7 @@ def _parse_requirements_file(file_path):
"pycocotools >=2.0.6",
"scipy==1.10.1",
]
_yolov8_integration_deps = _yolo_integration_deps + ["ultralytics==8.0.124"]
_yolov8_integration_deps = _computer_vision_deps + ["ultralytics==8.0.124"]
_transformers_integration_deps = [
"transformers<4.35",
"datasets<=2.14.6",
Expand All @@ -168,7 +164,7 @@ def _parse_requirements_file(file_path):
_haystack_integration_deps = _parse_requirements_file(_haystack_requirements_file_path)
_clip_deps = [
"open_clip_torch==2.20.0",
"scipy<1.9.2,>=1.8",
"scipy<1.10,>=1.8",
"transformers<4.35",
]

Expand Down Expand Up @@ -270,9 +266,9 @@ def _setup_extras() -> Dict:
"docs": _docs_deps,
"server": _server_deps,
"onnxruntime": _onnxruntime_deps,
"image_classification": _image_classification_deps,
"yolo": _yolo_integration_deps,
"yolov5": _yolo_integration_deps,
"image_classification": _computer_vision_deps,
"yolo": _computer_vision_deps,
"yolov5": _computer_vision_deps,
"haystack": _haystack_integration_deps,
"openpifpaf": _openpifpaf_integration_deps,
"yolov8": _yolov8_integration_deps,
Expand Down
4 changes: 2 additions & 2 deletions src/deepsparse/transformers/haystack/haystack_reqs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# deepsparse/transformers/haystack/__init__.py

importlib-metadata
torch==1.12.1
torch>=1.12.1
requests
pydantic
nltk
Expand Down Expand Up @@ -60,7 +60,7 @@ pillow
pdf2image==1.14.0
onnxruntime
onnxruntime_tools
ray>=1.9.1,<2
ray
aiorwlock>=1.3.0,<2
grpcio==1.43.0
beir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,10 @@ def test_group_name(mock_engine, group_name, pipeline_name, inputs, optional_ind

with open(expected_logs, "r") as f:
expected_logs = f.read().splitlines()
for log, expected_log in zip(data_logging_logs, expected_logs):
assert log == expected_log
expected_logs = set(expected_logs)

for data_logging_log in data_logging_logs:
assert data_logging_log in expected_logs, f"Unexpected log: {data_logging_log}"


yaml_config = """
Expand Down
79 changes: 0 additions & 79 deletions tests/examples/test_twitter_nlp.py

This file was deleted.

Loading