Skip to content

Commit

Permalink
Run CPU tests on a new dep group all-cpu (#616)
Browse files Browse the repository at this point in the history
* make tests run optional deps

* precommit

* fix order

* reprompt tests
  • Loading branch information
dakinggg authored Sep 20, 2023
1 parent c782e30 commit 299e737
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pytest-cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
set -ex
export PATH=/composer-python:$PATH
python -m pip install --upgrade 'pip<23' wheel
python -m pip install --upgrade .[dev]
python -m pip install --upgrade .[all-cpu]
- name: Run Tests
id: tests
run: |
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
'openai==0.27.8',
'tiktoken==0.4.0',
]
extra_deps['all-cpu'] = set(
dep for key, deps in extra_deps.items() for dep in deps if 'gpu' not in key)
extra_deps['all'] = set(dep for deps in extra_deps.values() for dep in deps)

setup(
Expand Down

0 comments on commit 299e737

Please sign in to comment.