@@ -31,13 +31,14 @@ jobs:
3131 - name : Cache conda and dependancies
3232 id : cache
3333 uses : actions/cache@v2
34+ env :
35+ # Increase this to reset the cache if the key hasn't changed.
36+ CACHE_NUM : 1
3437 with :
3538 path : |
36- c:\Miniconda\envs\anaconda-client-env
37- /usr/share/miniconda/envs/anaconda-client-env
38- ~/osx-conda
39- ~/.profile
40- key : ${{ runner.os }}-${{ matrix.python}}-conda-v10-${{ hashFiles('requirements/CI/pip-requirements.txt') }}-${{ hashFiles('requirements/CI/conda-requirements.txt') }}
39+ ${{ steps.find-conda.outputs.CONDA }}/envs/${{ env.CONDA_ENV_NAME }}
40+ ~/.bash_profile
41+ key : ${{ runner.os }}-${{ matrix.python}}-conda-v10-${{ hashFiles('requirements/CI/pip-requirements.txt') }}-${{ hashFiles('requirements/CI/conda-requirements.txt') }}-${{ env.CACHE_NUM }}
4142
4243 - name : Install Conda
4344 uses : conda-incubator/setup-miniconda@v2
5859 - name : Install conda deps
5960 if : steps.cache.outputs.cache-hit != 'true'
6061 shell : bash -l {0} # We need a login shell to get conda
61- run : conda install --yes --file=requirements/CI/conda-requirements.txt
62+ run : |
63+ if [ "$RUNNER_OS" != "Windows" ]; then
64+ conda install --yes slim
65+ fi
66+ conda install --yes --file=requirements/CI/conda-requirements.txt
6267
6368 - name : Install pip deps
6469 if : steps.cache.outputs.cache-hit != 'true'
@@ -76,13 +81,14 @@ jobs:
7681 mkdir -p /usr/local/miniconda/envs
7782 sudo cp -r ~/osx-conda /usr/local/miniconda/envs/anaconda-client-env
7883
79- - name : Build SLiM
80- run : |
81- git clone https://github.com/messerlab/SLiM.git
82- mkdir -p SLiM/Release
83- cd SLiM/Release
84- cmake -D CMAKE_BUILD_TYPE=Release ..
85- make -j 2
84+ # Installing SLiM from conda now.
85+ # - name: Build SLiM
86+ # run: |
87+ # git clone https://github.com/messerlab/SLiM.git
88+ # mkdir -p SLiM/Release
89+ # cd SLiM/Release
90+ # cmake -D CMAKE_BUILD_TYPE=Release ..
91+ # make -j 2
8692
8793 - name : Run tests
8894 run : |
9197 export PATH=$PATH:$PWD/SLiM/Release
9298 pytest -xv -n2
9399
100+ - name : Build docs
101+ run : |
102+ source ~/.profile
103+ conda activate anaconda-client-env
104+ export PATH=$PATH:$PWD/SLiM/Release
105+ touch docs/_static/{pedigree0.svg,pedigree1.svg,pedigree2.svg,pedigree_recapitate.svg,pedigree_simplify.svg,pedigree_mutate.svg}
106+ touch docs/_static/{pedigree01.png,pedigree0.png,pedigree1.png,pedigree2.png,pedigree_recapitate.png,pedigree_simplify.png,pedigree_mutate.png}
107+ cd docs && make
94108
95109
0 commit comments