Skip to content

Add GH actions for CI#59

Merged
sbillinge merged 2 commits into
diffpy:mainfrom
chloeann95:issue51
Feb 27, 2023
Merged

Add GH actions for CI#59
sbillinge merged 2 commits into
diffpy:mainfrom
chloeann95:issue51

Conversation

@chloeann95

@chloeann95 chloeann95 commented Feb 27, 2023

Copy link
Copy Markdown
Contributor

closes #51

@sbillinge sbillinge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please see inline comments.

Comment thread .github/workflows/main.yml Outdated
repository: diffpy/diffpy.pdfmorph
# for bookkeeping have diffpy.pdfmorph at the same level as everything else in the
# directory tree
path: diffpy.pdfmorph

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's start as easy as possible, so change this to

          path: .

Comment thread .github/workflows/main.yml Outdated
# environment.yml file is needed by this action. Because I don't want
# maintain this but rather maintain the requirements files it just has
# basic things in it like conda and pip
environment-file: diffpy.pdfmorph/environment.yml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then I think this would be ./environment.yml

Comment thread .github/workflows/main.yml Outdated
shell: bash -l {0}
run: |
conda config --set always_yes yes --set changeps1 no
cd diffpy.pdfmorph

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete this for now (cd diffpy.pdfmorph) but add
conda config --add channels conda-forge

run: |
cd diffpy.pdfmorph/diffpy/pdfmorph
conda activate test
pytest tests

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will need to insert here a line cd ./diffpy/pdfmorph before the pytest row.

Comment thread requirements/run.txt Outdated
scipy
diffpy.utils
matplotlib
bg-mpl-stylesheets

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might be better to do this on a different branch so we can merge it separately (and first)

@sbillinge sbillinge merged commit d563ea5 into diffpy:main Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make GH Actions CI

2 participants