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

Update publish workflow to use internal pypi #1191

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

yunchu
Copy link
Contributor

@yunchu yunchu commented Nov 13, 2023

Summary

How to test

Checklist

  • I have added unit tests to cover my changes.​
  • I have added integration tests to cover my changes.​
  • I have added the description of my changes into CHANGELOG.​
  • I have updated the documentation accordingly

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below).
# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: MIT

@vinnamkim
Copy link
Contributor

Why do we have to do this?

@yunchu yunchu force-pushed the infra/update-publish-workflow branch from 1a38db6 to 58eb5b6 Compare November 13, 2023 11:09
@yunchu yunchu marked this pull request as ready for review November 13, 2023 11:25
@yunchu yunchu requested review from a team as code owners November 13, 2023 11:25
@yunchu yunchu requested review from wonjuleee and removed request for a team November 13, 2023 11:25
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (01545bf) 79.97% compared to head (54c06b4) 79.97%.

Additional details and impacted files
@@               Coverage Diff               @@
##           releases/1.5.0    #1191   +/-   ##
===============================================
  Coverage           79.97%   79.97%           
===============================================
  Files                 265      265           
  Lines               29705    29705           
  Branches             5831     5831           
===============================================
  Hits                23756    23756           
  Misses               4617     4617           
  Partials             1332     1332           
Flag Coverage Δ
macos-11_Python-3.8 79.09% <ø> (ø)
ubuntu-20.04_Python-3.8 79.96% <ø> (ø)
windows-2022_Python-3.8 79.94% <ø> (ø)

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.

Comment on lines 90 to 100
run: |
export no_proxy=${{ secrets.PYPI_HOST }}
export REPOSITORY_URL=http://${{ secrets.PYPI_HOST }}:${{ secrets.PYPI_PORT }}
twine upload --verbose --repository-url $REPOSITORY_URL dist/* -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASSWORD }}
# - name: Publish package distributions to TestPyPI
# if: ${{ steps.check-tag.outputs.match == '' }}
# uses: pypa/gh-action-pypi-publish@v1.7.1
# with:
# password: ${{ secrets.TESTPYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
# verbose: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you remove the existing publish pipeline (to public PYPI)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

due to the action pypa/gh-action-pypi-publish need to have 'docker' inside of the ci-runner machine but did not have that. I will update those part to use 'twine' next time.

Copy link
Contributor Author

@yunchu yunchu Nov 14, 2023

Choose a reason for hiding this comment

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

and as I've told you in IM, publishing to the public PyPI will be done manually

@yunchu yunchu force-pushed the infra/update-publish-workflow branch 2 times, most recently from a9318c5 to 6530ca6 Compare November 14, 2023 03:13
@yunchu
Copy link
Contributor Author

yunchu commented Nov 14, 2023

I just added a new workflow which only works for manual triggering to publish whl files to the internal pypi. @wonjuleee @vinnamkim please review this PR again.

Copy link
Contributor

Choose a reason for hiding this comment

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

I still don't know why there exist two CI code pieces doing almost same. Do you have a plan to clean them in the future https://docs.github.com/en/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I will update publish workflows to use some reusable workflow later.

Copy link
Contributor

@vinnamkim vinnamkim left a comment

Choose a reason for hiding this comment

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

LGTM.

@yunchu yunchu merged commit 8be9c8b into releases/1.5.0 Nov 14, 2023
11 checks passed
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