@@ -23,28 +23,28 @@ jobs:
23
23
path : .
24
24
fetch-depth : 0 # avoid shallow clone with no tags
25
25
26
- - name : Install Mamba
27
- run : |
28
- wget "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh" -O mambaforge.sh
29
- bash mambaforge.sh -b -p $HOME/mambaforge
30
- echo "$HOME/mambaforge/bin" >> $GITHUB_PATH
31
- source $HOME/mambaforge/etc/profile.d/conda.sh
32
- conda init bash
33
-
34
- - name : Create conda environment
35
- run : |
36
- source $HOME/mambaforge/etc/profile.d/conda.sh
37
- conda create -n test_env python=3.12 xonsh regolith -c conda-forge -y
38
- conda activate test_env
39
- pip install case_insensitive_dict
26
+ - name : initialize miniconda
27
+ # this uses a marketplace action that sets up miniconda in a way that makes
28
+ # it easier to use. I tried setting it up without this and it was a pain
29
+ uses : conda-incubator/setup-miniconda@v2
30
+ with :
31
+ activate-environment : test
32
+ # environment.yml file is needed by this action. Because I don't want
33
+ # maintain this but rather maintain the requirements files it just has
34
+ # basic things in it like conda and pip
35
+ environment-file : ./environment.yml
36
+ python-version : 3
37
+ auto-activate-base : false
40
38
41
- - name : Install dependencies
39
+ - name : install diffpy.pdfgui requirements
40
+ shell : bash -l {0}
42
41
run : |
43
- source $HOME/mambaforge/etc/profile.d/conda.sh
44
- conda activate test_env
45
- mamba install --file requirements/run.txt
46
- mamba install --file requirements/test.txt
47
- pip install -e .
42
+ conda config --set always_yes yes --set changeps1 no
43
+ conda config --add channels conda-forge
44
+ conda activate test
45
+ conda install --file requirements/run.txt
46
+ conda install --file requirements/test.txt
47
+ pip install .
48
48
49
49
- name : Validate diffpy.pdfgui
50
50
shell : bash -l {0}
0 commit comments