Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MNT: upgrade upload/download-artifact GitHub actions #370

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

neutrinoceros
Copy link
Contributor

Description

Hi, version 4 of upload-artifact and download-artifact were recently released.
Staying on old version is not viable long term because GitHub will sooner or later drop support for the old versions of node that these depend on.
Since migration to v4 is not as straightfoward as bumping the version number, I'm helping all astropy-related packages byt manually performing the necessary changes.

Copy link

github-actions bot commented Jan 5, 2024

Thank you for your contribution! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.

  • Do the proposed changes actually accomplish desired goals?
  • Do the proposed changes follow the STScI coding guidelines?
  • Are tests added/updated as required? If so, do they follow the STScI testing guidelines?
  • Are docs added/updated as required?
  • Is rebase and/or squash necessary? If so, please provide the author with appropriate instructions.
  • Did the CI pass? If no, are the failures related?
  • Is a change log needed?
  • Is a milestone set? Milestone must be set but we cannot check for it on Actions; do not let the green checkmark fool you.

@pllim pllim added this to the 1.3.1 milestone Jan 5, 2024
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a8d4b56) 96.80% compared to head (ab8dc04) 96.80%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #370   +/-   ##
=======================================
  Coverage   96.80%   96.80%           
=======================================
  Files          17       17           
  Lines        2034     2034           
=======================================
  Hits         1969     1969           
  Misses         65       65           

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

@pllim
Copy link
Contributor

pllim commented Jan 5, 2024

Hello! It looks like I did not configure the publish workflow to ever run for a PR. Maybe let me fix that and then you can rebase, so we know it works before merge? Thanks for your patience!

@neutrinoceros
Copy link
Contributor Author

sure, by all means !

@pllim pllim added the Build wheels Test wheels on PR label Jan 5, 2024
@neutrinoceros
Copy link
Contributor Author

@pllim thanks for updating this branch. I think the failure is unrelated, can you re-trigger the job ?

@pllim
Copy link
Contributor

pllim commented Jan 5, 2024

@neutrinoceros , they didn't fail. I cancelled them because I realized I needed to enable artifact upload/download also for non-release events. I am still debating with myself whether I should disable them again after it is proven or not.

@pllim
Copy link
Contributor

pllim commented Jan 5, 2024

Ah... I mixed the release env stuff into dist build job too. I need to ponder this. (#371)

so we can test dist in PR.

I verified that upload/download works in PR 371
so no need to enable here for PRs.
Copy link
Contributor

@pllim pllim left a comment

Choose a reason for hiding this comment

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

Thanks! I added a commit to clean up my own tech debt. I think this is GTG now.

@pllim
Copy link
Contributor

pllim commented Jan 5, 2024

Also, yes, I thought about migrating to OpenAstronomy template but resisted because I got the Trusted Publishing already set up here and that does not play well with templating (yet).

@pllim pllim merged commit 2283f99 into spacetelescope:master Jan 5, 2024
22 checks passed
@neutrinoceros neutrinoceros deleted the mnt/upload-artifacts-v4 branch January 5, 2024 21:50
@pllim pllim modified the milestones: 1.3.1, 1.4.0 Mar 15, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants