Skip to content
Open
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
52 changes: 48 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,49 @@ orbs:
python: circleci/[email protected]

jobs:
unit-tests:
unit-tests-torch151:
executor: python/default
steps:
- checkout
- run:
name: setup
command: |
virtualenv -p python3.7 .venv
source .venv/bin/activate
# pip install -q torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
# temporary workaround for https://github.com/pytorch/pytorch/issues/49560
wget https://download.pytorch.org/whl/cpu/torch-1.5.1%2Bcpu-cp37-cp37m-linux_x86_64.whl
pip install -q torch-1.5.1+cpu-cp37-cp37m-linux_x86_64.whl
pip install -q .
pip install -q -r requirements-test.txt
- run:
name: Test
command: |
source .venv/bin/activate
pytest -sv test
flake8 . --count --exit-zero --statistics

torchscript-torch151:
executor: python/default
steps:
- checkout
- run:
name: setup
command: |
virtualenv -p python3.7 .venv
source .venv/bin/activate
# pip install -q torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
# temporary workaround for https://github.com/pytorch/pytorch/issues/49560
wget https://download.pytorch.org/whl/cpu/torch-1.5.1%2Bcpu-cp37-cp37m-linux_x86_64.whl
pip install -q torch-1.5.1+cpu-cp37-cp37m-linux_x86_64.whl
pip install -q .
sudo apt-get -y install cmake
- run:
name: Test
command: |
source .venv/bin/activate
bash test/test.sh
unit-tests-torch16:
executor: python/default
steps:
- checkout
Expand All @@ -26,7 +68,7 @@ jobs:
pytest -sv test
flake8 . --count --exit-zero --statistics

torchscript:
torchscript-torch16:
executor: python/default
steps:
- checkout
Expand All @@ -50,5 +92,7 @@ jobs:
workflows:
main:
jobs:
- unit-tests
- torchscript
- unit-tests-torch151
- torchscript-torch151
- unit-tests-torch16
- torchscript-torch16
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ sru/csrc/Makefile
sru/csrc/tests/main_test_cpp.cpp
sru_ts.pt
cpp_out.txt
cpp_srupp_out.txt
py_srupp_out.txt
srupp_ts.pt
Loading