-
Notifications
You must be signed in to change notification settings - Fork 0
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 action and CI #1
Conversation
.github/workflows/gh-ci.yaml
Outdated
auto-update-conda: true | ||
show-channel-urls: true | ||
|
||
- name: Setup Python ${{ steps.get-python-version.outputs.python-version }} |
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.
Why have this branch? pip is still pip whether or not you added it within a conda env or elsewhere?
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.
Shortcut -- if we really did arrays of:
- pip or conda or mamba
- with or without conda environment
- 3 versions of python
- develop, latest, specified version
- with or without tests
- multiple OSs
We'd have a gazillion tests. So I used the pip/mamba division to substitute for without/with conda environment.
Thanks for the comments already, @IAlibay! Any thoughts on it now? |
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.
A few questions, the main blocker here is adding updating things to the wiki release instructions.
action.yaml
Outdated
run: | | ||
python -m pip install ${{ steps.setup-install-line.outputs.install-line }} | ||
|
||
if [[ ${{ inputs.version }} == "latest" ]] ; then |
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.
I'm not sure why this special case exists, I thought you could just straight up pip install from git develop?
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.
"develop" pulls from git develop -- "latest" pulls the latest release available on pypi/conda. Is that what you're asking?
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.
Ohhhh, calling upgrade again? I think because I have murky memories in the past about having to manually --upgrade to get the latest version, although I never nailed down exactly why.
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 pip install from main in a few places in OpenFE and I've never had this problem. Would it be worth seeing if it's not worth it?
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.
I'm confused what you're asking here -- are you asking why pip --upgrade
, or are you asking to install from github? I was answering the former question. We could install from github for latest
but I guess I don't quite see why -- especially since I assume we're renaming master
at some point?
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.
Sorry my sole question here is about upgrade step overall and whether or not it's necessary to run it.
edit: I've never had to do this before, especially with pip
No description provided.