4141 - uses : conda-incubator/setup-miniconda@v4
4242 with :
4343 python-version : ${{ matrix.python-version }}
44- environment-file : scripts/requirements-test.yml
44+ use-mamba : true
45+ mamba-version : " *"
46+ channels : conda-forge
4547 activate-environment : ${{ steps.reqs.outputs.envname }}
48+ environment-file : scripts/requirements-test.yml
4649 run-post : false
4750 - id : build
4851 name : build
@@ -105,12 +108,15 @@ jobs:
105108 - uses : actions/checkout@v6
106109 with : {fetch-depth: 0, submodules: recursive}
107110 - name : set requirements
108- run : sed -ri -e '/ python /d ' -e 's/(.* numpy) .*/\1=${{ matrix.numpy-version }}/' -e 's/cuda*//' -e '/tigre/d' scripts/requirements-test.yml
111+ run : sed -ri -e 's/(.* python) .*/\1=${{ matrix.python-version }}/ ' -e 's/(.* numpy) .*/\1=${{ matrix.numpy-version }}/' -e 's/cuda*//' -e '/tigre/d' scripts/requirements-test.yml
109112 - uses : conda-incubator/setup-miniconda@v4
110113 with :
111- python-version : ${{ matrix.python-version }}
112- environment-file : scripts/requirements-test.yml
114+ miniforge-version : latest
115+ use-mamba : true
116+ mamba-version : " *"
117+ channels : conda-forge
113118 activate-environment : cil_dev
119+ environment-file : scripts/requirements-test.yml
114120 - run : pip install .
115121 - name : test
116122 run : python -m unittest discover -v ./Wrappers/Python/test
@@ -169,10 +175,12 @@ jobs:
169175 ref : ${{ github.event.pull_request.head.sha || github.ref }} # fix SHA
170176 - uses : conda-incubator/setup-miniconda@v4
171177 with :
178+ miniforge-version : latest
179+ use-mamba : true
172180 python-version : 3.12
173181 mamba-version : " *"
174182 channels : conda-forge
175- conda-remove-defaults : " true"
183+ conda-remove-defaults : true
176184 - uses : ruby/setup-ruby@v1
177185 with :
178186 ruby-version : ' 3.2'
@@ -182,7 +190,7 @@ jobs:
182190 run : |
183191 mamba install -c conda-forge -yq conda-merge
184192 conda-merge ../scripts/requirements-test.yml docs_environment.yml > environment.yml
185- sed -ri -e 's/cuda*//' -e '/tigre/d' environment.yml
193+ sed -ri -e 's/(.* python) .*/\1=3.12/' -e 's/ cuda*//' -e '/tigre/d' environment.yml
186194 mamba env update -n test --file environment.yml
187195 conda list
188196 - run : pip install ..
0 commit comments