Skip to content

Commit f6b24fb

Browse files
committed
[python-package.yml] try to activate the conda base environment for py37 only (WIP, not sure it works)
1 parent c7ac773 commit f6b24fb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,17 @@ jobs:
4848
- name: If Python is 3.7 install dependencies in conda base environment
4949
if: ${{ matrix.python-version == '3.7' }}
5050
run: |
51-
source activate base
51+
conda init
52+
conda init bash
53+
conda activate base
5254
python -m pip install --upgrade pip
5355
pip install pytest pytest-cov pytest-xdist
5456
shell: bash
5557
- name: If Python is 3.7 install package in conda base environment
5658
if: ${{ matrix.python-version == '3.7' }}
5759
run: |
58-
source activate base
60+
conda init
61+
conda activate base
5962
pip install --upgrade pip
6063
pip install --upgrade setuptools
6164
pip install -e .
@@ -64,7 +67,8 @@ jobs:
6467
- name: If Python is 3.7 test with pytest and coverage Linux 8 threads in conda base environment
6568
if: ${{ matrix.python-version == '3.7' }}
6669
run: |
67-
source activate base
70+
conda init
71+
conda activate base
6872
echo -e '[run]\nomit = *dihedrals.py,*contact_matrix.py' > .coveragerc
6973
pytest -n 8 -vs --cov=./ --cov-report=xml --disable-warnings --cov-config=.coveragerc
7074
shell: bash

0 commit comments

Comments
 (0)