Skip to content

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

Merged
merged 2 commits into from
Feb 27, 2023
Merged

Add GH actions for CI #59

merged 2 commits into from
Feb 27, 2023

Conversation

chloeann95
Copy link
Contributor

@chloeann95 chloeann95 commented Feb 27, 2023

closes #51

Copy link
Contributor

@sbillinge sbillinge left a 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.

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
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: .

# 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
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

shell: bash -l {0}
run: |
conda config --set always_yes yes --set changeps1 no
cd diffpy.pdfmorph
Copy link
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
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.

@@ -2,3 +2,4 @@ numpy
scipy
diffpy.utils
matplotlib
bg-mpl-stylesheets
Copy link
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