Skip to content

Commit ec94258

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 ec94258

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/python-package.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ 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
52-
python -m pip install --upgrade pip
53-
pip install pytest pytest-cov pytest-xdist
51+
conda run -n base python -m pip install --upgrade pip
52+
conda run -n base pip install pytest pytest-cov pytest-xdist
5453
shell: bash
5554
- name: If Python is 3.7 install package in conda base environment
5655
if: ${{ matrix.python-version == '3.7' }}
5756
run: |
58-
source activate base
57+
conda init
58+
conda activate base
5959
pip install --upgrade pip
6060
pip install --upgrade setuptools
6161
pip install -e .
@@ -64,7 +64,8 @@ jobs:
6464
- name: If Python is 3.7 test with pytest and coverage Linux 8 threads in conda base environment
6565
if: ${{ matrix.python-version == '3.7' }}
6666
run: |
67-
source activate base
67+
conda init
68+
conda activate base
6869
echo -e '[run]\nomit = *dihedrals.py,*contact_matrix.py' > .coveragerc
6970
pytest -n 8 -vs --cov=./ --cov-report=xml --disable-warnings --cov-config=.coveragerc
7071
shell: bash

0 commit comments

Comments
 (0)