Skip to content

Commit

Permalink
adopting miniconda for pytest action
Browse files Browse the repository at this point in the history
  • Loading branch information
paolap committed Aug 8, 2024
1 parent 52acabc commit 5a5c415
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/mopper-pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,23 @@ jobs:
uses: actions/[email protected]
with:
python-version: '3.10'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install Miniconda
uses: conda-incubator/[email protected]
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
#- name: Add conda to system path
# run: |
# # $CONDA is an environment variable pointing to the root of the miniconda directory
# echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
#conda config --set solver classic
# this seems to slow it down!!!
conda env update --file conda/test-env.yaml --name base
- name: Lint with ruff
run: |
conda install -c conda-forge ruff --solver classic
conda install -c conda-forge ruff #--solver classic
ruff check --output-format=github .
continue-on-error: true
# making sure we are testing installed package
Expand All @@ -45,7 +50,7 @@ jobs:
pip install -e .
- name: Test with pytest
run: |
conda install pytest coverage codecov --solver classic
conda install pytest coverage codecov #--solver classic
conda install -c conda-forge pyfakefs
conda run python -m pytest
#conda run coverage run --source src -m py.test
Expand Down

0 comments on commit 5a5c415

Please sign in to comment.