Skip to content

Commit

Permalink
fix tests on win
Browse files Browse the repository at this point in the history
py37 doesn't support Pathlib objs in subprocess args on windows
https://bugs.python.org/issue41649
  • Loading branch information
k-dominik committed Oct 29, 2021
1 parent 1981241 commit bbdfa34
Show file tree
Hide file tree
Showing 2 changed files with 246 additions and 170 deletions.
34 changes: 10 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,28 @@ jobs:
TEST_ENV_NAME: test-env
TEST_ENV_PREFIX: /home/ubuntu/miniconda/envs/test-env
docker:
- image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37
command: /sbin/init
- image: continuumio/miniconda3
steps:
- checkout

- restore_cache:
keys:
# This branch if available
- v0.0.3-dep-{{ .Branch }}-
- 0.1.0-dep-{{ .Branch }}-
# Default branch if not
- v0.0.3-dep-master-
- 0.1.0-dep-master-
# Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly
- v0.0.3-dep-
- 0.1.0-dep-

- run:
name: miniconda installation
command: |
if [[ ! -d ${CONDA_ROOT} ]]; then
echo "Installing Miniconda...";
wget --quiet https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh &&
bash Miniconda3-latest-Linux-x86_64.sh -b -p ${CONDA_ROOT};
else
echo "Using cached Miniconda install";
fi
- run:
name: make miniconda available
command: |
echo 'export PATH=${CONDA_ROOT}/bin:${PATH}' >> $BASH_ENV
echo ". /home/ubuntu/miniconda/etc/profile.d/conda.sh" >> ~/.bashrc
- run:
name: conda-build installation
command: conda install -y -c conda-forge conda-build conda-verify
name: update conda
command: >
conda config --set always_yes yes --set changeps1 no --set channel_priority strict &&
conda update -q conda -c conda-forge -c defaults &&
conda install -n base -c conda-forge -c defaults conda-build
- save_cache:
key: v0.0.3-dep-{{ .Branch }}-{{ epoch }}
key: 0.1.0-dep-{{ .Branch }}-{{ epoch }}
paths:
- /home/ubuntu/miniconda

Expand Down
Loading

0 comments on commit bbdfa34

Please sign in to comment.