-
Notifications
You must be signed in to change notification settings - Fork 268
Setting Up Local Testing Environments
Mikko Kotila edited this page Apr 11, 2019
·
3 revisions
TIME REQUIRED: 15 minutes
SKILL LEVEL: all skill levels
Before pushing anything to the Talos repo, make sure that all tests pass on different python versions. If you are on conda, first create the environments.
NOTE: We're also testing for python3.7 even though Travis does not support it yet but Talos does.
conda create --name talos_27 python=2.7
conda create --name talos_35 python=3.5
conda create --name talos_36 python=3.6
conda create --name talos_37 python=3.7
NOTE: you have to first install tensorflow based on your system.
First activate one of the environments:
conda activate talos_37
Make sure the Talos repo is your present working directory and install the required packages:
pip install -r requirements.txt
Next create a reference file for Conda to know what to copy to other envs:
conda env export > environment.yml
Then copy the packages to all the other environments.
conda env update -n talos_27 -f environment.yml
conda env update -n talos_35 -f environment.yml
conda env update -n talos_36 -f environment.yml