-
Notifications
You must be signed in to change notification settings - Fork 15
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
installation in github actions #18
Comments
PS. the project depends on sparrow 2.0.1... I am not sure if 3.0.0 would work, is there any compatibility issue or breaking changes for the python parts? |
I wouldn't recommend building in CI since Sparrow is very expensive to compile. I packaged a version on conda-forge which can be installed using # Important to keep the conda environment active between steps
defaults:
run:
shell: bash -l {0}
# ...
steps:
# ...
- name: Install dependencies
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environment.yml You can use this environment.yml to get name: sparrow
channels:
- conda-forge
dependencies:
- scine-sparrow-python You need at least the - name: Install dependencies
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environment.yml
extra-specs: |
scine-sparrow-python If you rely on conda-forge for Python packages it is best to install all Python packages from conda-forge.
There are a lot of breaking changes, like change of the coordinate unit from Ångström to Bohr. I helped fixing a compatibility interface which makes Sparrow 3.0.0 look like Sparrow 2.0.1 a while ago, this can serve as reference for the required upgrade steps. See https://github.com/gncs/molgym/blob/master/molgym/calculator.py |
Do you have a tried and tested github actions script for using sparrow within projects with CI/CD?
I am trying to install Sparrow in a github actions environment for testing some python code that is supposed to use it. I am trying to run the cmake installation, but for some reason it fails at the point of downloading the dependencies using your
cmake
tools. Oddly enough, if I am doing the same in Docker for example it just works, with the warning about cmake version settings not provided being shown as well and ignored (likely you are calling cmake from a non toplevel directory as well?)The error is:
and the whole action file is as follows, that reproduces this:
I have taken this stripped-down version of the installation scripts and put them into a puclic repo as well for you to see:
https://github.com/stenczelt/actions-test/runs/6746640491
The text was updated successfully, but these errors were encountered: