File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ workflow_dispatch :
9+
10+ jobs :
11+ miniconda :
12+ name : Miniconda ${{ matrix.os }}
13+ runs-on : ${{ matrix.os }}
14+ strategy :
15+ matrix :
16+ os : ["ubuntu-latest"]
17+ steps :
18+ - name : check out diffpy.pdfmorph
19+ uses : actions/checkout@v3
20+ with :
21+ repository : diffpy/diffpy.pdfmorph
22+ # for bookkeeping have diffpy.pdfmorph at the same level as everything else in the
23+ # directory tree
24+ path : .
25+
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
38+
39+ - name : install pdfmorph requirements
40+ shell : bash -l {0}
41+ run : |
42+ conda config --set always_yes yes --set changeps1 no
43+ conda config --add channels conda-forge
44+ conda install --file requirements/run.txt
45+ pip install .
46+
47+ - name : Validate pdfmorph
48+ shell : bash -l {0}
49+ run : |
50+ cd diffpy.pdfmorph/diffpy/pdfmorph
51+ conda activate test
52+ cd ./diffpy/pdfmorph
53+ pytest tests
Original file line number Diff line number Diff line change 1+ name : regolith
2+ channels :
3+ - conda-forge
4+ dependencies :
5+ - python=3
6+ - pip
You can’t perform that action at this time.
0 commit comments