-
Notifications
You must be signed in to change notification settings - Fork 18
Add GH actions for CI #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see inline comments.
.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 |
There was a problem hiding this comment.
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: .
.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 |
There was a problem hiding this comment.
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
.github/workflows/main.yml
Outdated
shell: bash -l {0} | ||
run: | | ||
conda config --set always_yes yes --set changeps1 no | ||
cd diffpy.pdfmorph |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
requirements/run.txt
Outdated
@@ -2,3 +2,4 @@ numpy | |||
scipy | |||
diffpy.utils | |||
matplotlib | |||
bg-mpl-stylesheets |
There was a problem hiding this comment.
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)
closes #51