Skip to content
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

Merged
merged 36 commits into from
Aug 14, 2022
Merged

Add action and CI #1

merged 36 commits into from
Aug 14, 2022

Conversation

lilyminium
Copy link
Member

No description provided.

auto-update-conda: true
show-channel-urls: true

- name: Setup Python ${{ steps.get-python-version.outputs.python-version }}
Copy link
Member

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?

Copy link
Member Author

@lilyminium lilyminium Aug 13, 2022

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.

@lilyminium lilyminium marked this pull request as ready for review August 13, 2022 05:26
@lilyminium
Copy link
Member Author

Thanks for the comments already, @IAlibay! Any thoughts on it now?

Copy link
Member

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

.github/workflows/gh-ci.yaml Outdated Show resolved Hide resolved
.github/workflows/gh-ci.yaml Outdated Show resolved Hide resolved
.github/workflows/gh-ci.yaml Show resolved Hide resolved
.github/workflows/gh-ci.yaml Show resolved Hide resolved
action.yaml Show resolved Hide resolved
action.yaml Outdated Show resolved Hide resolved
action.yaml Outdated
run: |
python -m pip install ${{ steps.setup-install-line.outputs.install-line }}

if [[ ${{ inputs.version }} == "latest" ]] ; then
Copy link
Member

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?

Copy link
Member Author

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?

Copy link
Member Author

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.

Copy link
Member

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?

Copy link
Member Author

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?

Copy link
Member

@IAlibay IAlibay Aug 13, 2022

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

@lilyminium lilyminium changed the title add ci Add action and CI Aug 14, 2022
@lilyminium lilyminium merged commit 029b31b into main Aug 14, 2022
@IAlibay IAlibay deleted the add-ci branch August 29, 2023 12:08
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.

2 participants