Skip to content

Commit

Permalink
Move PyTest to dev install (#144)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #144

#142 correctly points out that "normal" users won't need pytest installed. Moved it accordingly.

Reviewed By: sayanghosh, karthikprasad

Differential Revision: D26798927

fbshipit-source-id: e3f912227a089d1d29b192e6300c481877f9caa7
  • Loading branch information
Darktex authored and facebook-github-bot committed Mar 10, 2021
1 parent 3d92e94 commit 4a8bbe8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ jobs:
steps:
- checkout
- pip_install
- run: pip install torchcsprng hypothesis
- run: pip install torchcsprng hypothesis pytest
- unit_tests

unittest_py37_torch_release:
Expand All @@ -277,7 +277,7 @@ jobs:
steps:
- checkout
- pip_install
- run: pip install torchcsprng hypothesis
- run: pip install torchcsprng hypothesis pytest
- unit_tests

unittest_py38_torch_release:
Expand All @@ -286,7 +286,7 @@ jobs:
steps:
- checkout
- pip_install
- run: pip install torchcsprng hypothesis
- run: pip install torchcsprng hypothesis pytest
- unit_tests

unittest_py38_torch_nightly:
Expand All @@ -304,6 +304,7 @@ jobs:
steps:
- checkout
- pip_install
- run: pip install pytest
- mnist_integration_test:
device: "cpu"

Expand All @@ -316,6 +317,7 @@ jobs:
- checkout
- py_3_6_setup
- pip_install
- run: pip install pytest
- run_nvidia_smi
- mnist_integration_test:
device: "cuda"
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ torch>=1.3
torchvision>=0.9
tqdm>=4.40
scipy>=1.2
pytest
requests
requests>=2.25.1
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

DEV_REQUIRES = [
"black",
"pytest",
"flake8",
"sphinx",
"sphinx-autodoc-typehints",
Expand Down

0 comments on commit 4a8bbe8

Please sign in to comment.