OS X unit testing.
@@ -11,6 +11,13 @@ standard_cpu36: &standard_cpu36
docker:
- image: circleci/python:3.6.5-node
+osx_cpu37: &osx_cpu37
+ macos:
+ xcode: "10.1.0"
+ environment:
+ PYTHON: 3.7.1
+ HOMEBREW_NO_AUTO_UPDATE: 1
+
gpu: &gpu
environment:
CUDA_VERSION: "10.0"
@@ -57,6 +64,12 @@ installtorchgpu: &installtorchgpu
pip3 install --progress-bar off pytorch-pretrained-bert
pip3 install --progress-bar off torchtext
+installtorchcpuosx: &installtorchcpuosx
+ run:
+ name: Install torch CPU and dependencies
+ command: |
+ pip3 install --progress-bar off https://download.pytorch.org/whl/cpu/torch-1.0.0-cp37-none-macosx_10_7_x86_64.whl
+
installtorchcpu36: &installtorchcpu36
run:
name: Install torch CPU and dependencies
@@ -106,6 +119,19 @@ jobs:
name: Data tests
command: python setup.py test -s tests.suites.datatests -v
+ unittests_osx:
+ <<: *osx_cpu37
+ working_directory: ~/ParlAI
+ steps:
+ - checkout
+ - <<: *fixgit
+ - <<: *setup
+ - <<: *installdeps
+ - <<: *installtorchcpuosx
+ - run:
+ name: Unit tests (OSX)
+ command: python setup.py test -s tests.suites.unittests -v
+
unittests_36:
<<: *standard_cpu36
working_directory: ~/ParlAI
@@ -302,6 +328,7 @@ workflows:
- unittests_gpu
- unittests_37
- unittests_36
+ - unittests_osx
- mturk_tests:
filters:
branches:
@@ -333,6 +360,7 @@ workflows:
- unittests_36
- unittests_37
- unittests_gpu
+ - unittests_osx
- mturk_tests
- nightly_gpu_tests
- test_website
