-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add parameter to choose optimade-python-tools version, branch, tag or commit #4
Add parameter to choose optimade-python-tools version, branch, tag or commit #4
Conversation
c74cd54
to
acf2b61
Compare
e9b15ee
to
e5e3f0f
Compare
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.
This looks nice @CasperWA, and addresses my concerns in the Materials-Consortia/optimade-python-tools#223. What's going on with the action tests though? I can't load the status at the moment
# Retrieve and add GitHub Actions host runner IP to known hosts | ||
DOCKER_HOST_IP=$(cat /docker_host_ip) | ||
echo ${DOCKER_HOST_IP} gh_actions_host >> /etc/hosts | ||
|
||
run_validator="optimade_validator" | ||
run_validator="optimade_validator --verbosity 2" |
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.
Don't forget about that handy OPTIMADE_VERBOSITY
env var!
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.
Hehehe, for sure - but I want to make it editable (see #7)
Can be either: - 'latest': Will install the latest PyPI released version - PyPI released version (e.g., 'v0.6.0' or '0.6.0') - optimade-python-tools branch, tag or commit (anything that is accepted by pip to install as reference) And will be tested for in that order as well. Update README with new parameter. Enforce --no-cache for installing optimade. Use tarball directly from GitHub.
The tests of the entrypoint.sh is based on BATS (https://github.com/bats-core/bats-core). It runs the tests in a docker container based on the bats/bats public docker image. Also, added the constraint that `vMAJOR.MINOR.PATCH` and `MAJOR.MINOR.PATCH` are the same, in terms of installing from PyPI. Add README section about running tests. New helpful sh script for running the tests. Use sh script to run tests in CI.
Note: The possibility to adjust verbosity should be added to the action
876d18c
to
3fb365d
Compare
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.
Looks good to me.
Close #1
This adds the
validator version
parameter.It is required and defaults to
'latest'
.It accepts anything
pip
can handle to install fromgit
(see here) in terms of branches, tags, and commits.If a version is chosen, e.g.,
'0.6.0'
it will install this version from PyPI.Finally, if
'latest'
is chosen (the default), it will install the latest version from PyPI.