Skip to content

Commit 9a29e46

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 9a29e46

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/python-package.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,22 @@ 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
59-
pip install --upgrade pip
60-
pip install --upgrade setuptools
61-
pip install -e .
62-
pip freeze
57+
conda run -n base pip install --upgrade pip
58+
conda run -n base pip install --upgrade setuptools
59+
conda run -n base pip install -e .
60+
conda run -n base pip freeze
6361
shell: bash
6462
- name: If Python is 3.7 test with pytest and coverage Linux 8 threads in conda base environment
6563
if: ${{ matrix.python-version == '3.7' }}
6664
run: |
67-
source activate base
6865
echo -e '[run]\nomit = *dihedrals.py,*contact_matrix.py' > .coveragerc
69-
pytest -n 8 -vs --cov=./ --cov-report=xml --disable-warnings --cov-config=.coveragerc
66+
conda run -n base pytest -n 8 --verbose --capture=no --cov=./ --cov-report=xml --disable-warnings --cov-config=.coveragerc
7067
shell: bash
7168
#### End Python 3.7 block
7269
- name: If Python != 3.7 install dependencies normally

0 commit comments

Comments
 (0)