Skip to content

Commit

Permalink
[python-package.yml] try to activate the conda base environment for p…
Browse files Browse the repository at this point in the history
…y37 only (WIP, not sure it works)
  • Loading branch information
gph82 committed Jan 3, 2025
1 parent c7ac773 commit 818b1d5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ jobs:
- name: If Python is 3.7 install dependencies in conda base environment
if: ${{ matrix.python-version == '3.7' }}
run: |
source activate base
conda init
conda activate base
python -m pip install --upgrade pip
pip install pytest pytest-cov pytest-xdist
shell: bash
- name: If Python is 3.7 install package in conda base environment
if: ${{ matrix.python-version == '3.7' }}
run: |
source activate base
conda init
conda activate base
pip install --upgrade pip
pip install --upgrade setuptools
pip install -e .
Expand All @@ -64,7 +66,8 @@ jobs:
- name: If Python is 3.7 test with pytest and coverage Linux 8 threads in conda base environment
if: ${{ matrix.python-version == '3.7' }}
run: |
source activate base
conda init
conda activate base
echo -e '[run]\nomit = *dihedrals.py,*contact_matrix.py' > .coveragerc
pytest -n 8 -vs --cov=./ --cov-report=xml --disable-warnings --cov-config=.coveragerc
shell: bash
Expand Down

0 comments on commit 818b1d5

Please sign in to comment.