Skip to content

Commit

Permalink
.circleci: Add Python 3.9 to CI
Browse files Browse the repository at this point in the history
Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
(cherry picked from commit b77734d)
Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
  • Loading branch information
seemethere committed Nov 30, 2020
1 parent fb85642 commit ce80cfd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .circleci/unittest/linux/scripts/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ if [ ! -d "${conda_dir}" ]; then
fi
eval "$(${conda_dir}/bin/conda shell.bash hook)"

CONDA_CHANNEL_FLAGS=""
if [[ "${PYTHON_VERSION}" = 3.9 ]]; then
CONDA_CHANNEL_FLAGS="-c=conda-forge"
fi

# 2. Create test environment at ./env
if [ ! -d "${env_dir}" ]; then
printf "* Creating a test environment\n"
Expand All @@ -36,4 +41,4 @@ conda activate "${env_dir}"

# 3. Install Conda dependencies
printf "* Installing dependencies (except PyTorch)\n"
conda env update --file "${this_dir}/environment.yml" --prune
conda env update ${CONDA_CHANNEL_FLAGS} --file "${this_dir}/environment.yml" --prune

0 comments on commit ce80cfd

Please sign in to comment.