Skip to content

Commit 5108e9c

Browse files
committed
test unittest
1 parent 83af8c6 commit 5108e9c

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/main.yml

+20-20
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,28 @@ jobs:
2323
path: .
2424
fetch-depth: 0 # avoid shallow clone with no tags
2525

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
4038

41-
- name: Install dependencies
39+
- name: install diffpy.pdfgui requirements
40+
shell: bash -l {0}
4241
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 .
4848
4949
- name: Validate diffpy.pdfgui
5050
shell: bash -l {0}

0 commit comments

Comments
 (0)