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 conda canary CI job #903

Merged
merged 18 commits into from
Aug 5, 2024
Merged

Add conda canary CI job #903

merged 18 commits into from
Aug 5, 2024

Conversation

IAlibay
Copy link
Member

@IAlibay IAlibay commented Jul 23, 2024

Fixes #891

Checklist

  • Added a news entry

Developers certificate of origin

Comment on lines 4 to 9
pull_request:
branches:
- main
push:
branches:
- main
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this once CI runs

name: "Run tests"
run: |
# note: this only runs the fast tests
pytest -n auto --pyargs openfe openfecli
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 relying on a normal failure here rather than raising the issue as we do with gufe. The plan will be to hook up Swenson's cron job checker tool.

@IAlibay IAlibay assigned mikemhenry and unassigned mikemhenry Jul 23, 2024
@IAlibay IAlibay requested a review from mikemhenry July 23, 2024 16:10
Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.35%. Comparing base (dee2b70) to head (357511c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #903      +/-   ##
==========================================
- Coverage   94.16%   92.35%   -1.81%     
==========================================
  Files         134      134              
  Lines        9786     9786              
==========================================
- Hits         9215     9038     -177     
- Misses        571      748     +177     
Flag Coverage Δ
fast-tests 92.35% <ø> (?)
slow-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@IAlibay
Copy link
Member Author

IAlibay commented Jul 23, 2024

@mikemhenry any ideas why the py3.9 package for macos osx-arm64 wouldn't have bundled the test files :/ seems so odd

@mikemhenry
Copy link
Contributor

that is super weird since we are a no-arch package so it should be pulling in the same conda-forge packages for all the tests....

- name: "Install openfe + optional deps"
run: |
micromamba install openfe pytest -c conda-forge
python -m pip install pytest-xdist PyGithub
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does PyGithub do?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

o that was just me being silly wanting to do something else

@IAlibay
Copy link
Member Author

IAlibay commented Jul 23, 2024

that is super weird since we are a no-arch package so it should be pulling in the same conda-forge packages for all the tests....

Yeah.. I don't have an osx-arm64 machine to test it out either.

@mikemhenry
Copy link
Contributor

We can drop 3.9 from our testing matrix entirely IMHO https://scientific-python.org/specs/spec-0000/

@IAlibay
Copy link
Member Author

IAlibay commented Jul 29, 2024

We can drop 3.9 from our testing matrix entirely IMHO https://scientific-python.org/specs/spec-0000/

@mikemhenry I agree, but since it's a canary for "what is currently being used", I do like to be a little bit more "what we were intending the release to be applied to". If you have a strong view here I'm happy to change my mind though!

@mikemhenry
Copy link
Contributor

Okay I agree it will be nice to have, and if it starts failing due to things outside of our control, we will then know and can mention that it needs to be at least python 3.x, and then drop out the failing python version from the matrix.

@IAlibay something missing from this is that we want to try and install the latest version of openfe and not just what conda decides to pull in since right now it could pull in 0.1 and things would pass.

Is this something we want to figure out with some scripting, or do we hard code the version and add bumping it as part of the release checklist?

Either way, for testing this PR, I will just hard code it for now

@mikemhenry
Copy link
Contributor

image
because we didn't have a -e argument in our bash shell, we didn't catch this typo and CI gave us a ✔️

@mikemhenry mikemhenry enabled auto-merge (squash) August 5, 2024 23:34
@mikemhenry mikemhenry merged commit 5f2cbe3 into main Aug 5, 2024
11 checks passed
@mikemhenry mikemhenry deleted the conda-canary branch August 5, 2024 23:43
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.

Add conda canary
2 participants