Open stenczelt opened 2 years ago
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 mamba-org/provision-with-micromamba
in GHA:
# 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 scine-sparrow-python
:
name: sparrow
channels:
- conda-forge
dependencies:
- scine-sparrow-python
You need at least the name
and channels
key in the environment.yml, the dependencies can also be passed directly to the action with the extra-specs
option:
- 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.
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?
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