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 push to pypi #1496

Merged
merged 10 commits into from
Sep 22, 2023
Merged

Fix push to pypi #1496

merged 10 commits into from
Sep 22, 2023

Conversation

Ariana-B
Copy link
Contributor

@Ariana-B Ariana-B commented Sep 21, 2023

Reason for this pull request

PyPi action is still broken.

Proposed changes

  • Put back step to push to test pypi (secrets.TestPyPiToken is missing or invalid, needs to be updated)

  • Fix bash syntax for setting push_pypi

  • Closes #xxxx

  • Tests added / passed

  • Fully documented, including docs/about/whats_new.rst for all changes


📚 Documentation preview 📚: https://datacube-core--1496.org.readthedocs.build/en/1496/

@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (9924bac) 91.79% compared to head (2f414cd) 91.79%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1496   +/-   ##
========================================
  Coverage    91.79%   91.79%           
========================================
  Files          132      132           
  Lines        14537    14537           
========================================
  Hits         13344    13344           
  Misses        1193     1193           

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

@Ariana-B Ariana-B requested a review from omad September 22, 2023 03:19
@Ariana-B Ariana-B marked this pull request as ready for review September 22, 2023 03:20
Copy link
Member

@omad omad left a comment

Choose a reason for hiding this comment

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

Thanks Ariana, this will probably make it work again.

I think we need to totally redo this GHA workflow though, it's enough to give me nightmares with:

But, lets fix that another day... :)

Comment on lines +33 to +34
push_test_pypi=no
push_pypi=no
Copy link
Member

Choose a reason for hiding this comment

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

These two lines have no effect, they're setting environment variables that are never exported or used.

push_pypi=no

if [[ "${GITHUB_REF}" =~ refs/tags/.* ]]; then
echo "push_test_pypi=yes" >> $GITHUB_OUTPUT
Copy link
Member

Choose a reason for hiding this comment

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

We're not using these two settings separately, either we push to both test and real pypi, or we do neither.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I thought I'd leave them both in just in case we want to introduce an additional trigger condition for test pypi. It can be refined up with the next update to the workflow I suppose

@omad omad merged commit f45ba8c into develop Sep 22, 2023
20 checks passed
@omad omad deleted the fix_pypi_action branch September 22, 2023 06:17
@SpacemanPaul SpacemanPaul mentioned this pull request Oct 24, 2023
2 tasks
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