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 d95cf12
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,22 @@ jobs:
- name: If Python is 3.7 install dependencies in conda base environment
if: ${{ matrix.python-version == '3.7' }}
run: |
source activate base
python -m pip install --upgrade pip
pip install pytest pytest-cov pytest-xdist
conda run -n base python -m pip install --upgrade pip
conda run -n base 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
pip install --upgrade pip
pip install --upgrade setuptools
pip install -e .
pip freeze
conda run -n base pip install --upgrade pip
conda run -n base pip install --upgrade setuptools
conda run -n base pip install -e .
conda run -n base pip freeze
shell: bash
- 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
echo -e '[run]\nomit = *dihedrals.py,*contact_matrix.py' > .coveragerc
pytest -n 8 -vs --cov=./ --cov-report=xml --disable-warnings --cov-config=.coveragerc
conda run -n base 'pytest -n 8 -vs --cov=./ --cov-report=xml --disable-warnings --cov-config=.coveragerc'
shell: bash
#### End Python 3.7 block
- name: If Python != 3.7 install dependencies normally
Expand Down

0 comments on commit d95cf12

Please sign in to comment.