Skip to content

Commit

Permalink
Update the ci workflow to use mamba instead of conda
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Pozo Gonzalez committed Sep 11, 2024
1 parent 12d4550 commit f008d7e
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,29 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Add conda to system path
- name: Prepare mamba installation
env:
PYTHON_VERSION: '3.10'
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
# setup correct python version
sed -i -e "s/- python=.*/- python=$PYTHON_VERSION/g" environment.yml
- name: Mamba setup
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
cache-downloads: true

- name: Install dependencies
run: |
conda env update --file environment.yml --name base
python --version
echo "Installing additional pip packages"
echo "pip install ."
pip install .
pip install pytest
- name: Test with pytest
run: |
conda install pytest
pytest

0 comments on commit f008d7e

Please sign in to comment.