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

(fix): gpu ci uses max version from pyproject.toml #1714

Merged
merged 20 commits into from
Oct 15, 2024
Merged

Conversation

ilan-gold
Copy link
Contributor

  • Closes #
  • Tests added
  • Release note added (or unnecessary)

@@ -51,10 +51,17 @@ jobs:
- name: Nvidia SMI sanity check
run: nvidia-smi

- name: Extract max Python version from classifiers
run: |
sudo apt-get update && sudo apt-get install -y cargo && cargo install toml-cli
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah was looking for something like this just now. I also thought cargo came on the ubuntu images by default but evidently not install?

Also, do you think we should be doing this for all of our CI i.e., extracting from pyproject.toml?

Copy link
Contributor Author

@ilan-gold ilan-gold Oct 14, 2024

Choose a reason for hiding this comment

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

Ok I think that is only for rust projects: https://github.com/scverse/anndata/actions/runs/11330444061/job/31508293550?pr=1714

Hmm no, I think this may be what I saw before actually. Github needs the cargo path without a rust project so I think I'll just go back

Copy link
Member

Choose a reason for hiding this comment

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

I still think that using that action is better, because it sets up PATH and uses caching.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I read this as cargo not being on the path

Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.93%. Comparing base (27eaf39) to head (ad70b7d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1714      +/-   ##
==========================================
+ Coverage   84.45%   86.93%   +2.48%     
==========================================
  Files          40       40              
  Lines        6039     6039              
==========================================
+ Hits         5100     5250     +150     
+ Misses        939      789     -150     

see 8 files with indirect coverage changes

Copy link
Member

@flying-sheep flying-sheep left a comment

Choose a reason for hiding this comment

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

Awesome! I’m not a huge fan of most1 short-form CLI parameters, so if you could switch the more obscure ones to long-form I’d even be happier.

Also \K means something regarding capture right? If I’m right, maybe use a capture group instead, I think people are more likely to know that one. Otherwise please add a comment explaining what it is.

Footnotes

  1. except super-well known ones like something -vv, grep -P/-E, or tail -n1/-c5 or so

@ilan-gold
Copy link
Contributor Author

I aim to please :)

Copy link
Member

@flying-sheep flying-sheep left a comment

Choose a reason for hiding this comment

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

Ah great, now I understand what’s going on!

@ilan-gold ilan-gold merged commit 996b172 into main Oct 15, 2024
15 of 16 checks passed
@ilan-gold ilan-gold deleted the ig/fix_gpu_ci branch October 15, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants