-
Notifications
You must be signed in to change notification settings - Fork 87
Ci build #391
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
Ci build #391
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
.github/workflows/build.yml
Outdated
| mv dist/*.whl wheelhouse/ | ||
| - name: List and check wheels | ||
| run: | | ||
| pip install twine pkginfo>=1.11.0 | ||
| ${{ matrix.ls || 'ls -lh' }} wheelhouse/ | ||
| twine check wheelhouse/* | ||
| - name: Upload wheels | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: wheels-${{ matrix.python-version }} | ||
| path: ./wheelhouse/*.whl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving only *.whl only copies the wheel to ./wheelhouse, so the .tar.gz isn't getting uploaded, I think. Can we just upload whatever is in dist/?
peytondmurray
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Adds a CI workflow for building wheel and pushing metadata to pypi. Note that for this to work, the tensorflow/fairness-indicators repo will need to be setup as a trusted publisher on the relevant pypi account.
I tested this workflow with the testpypi artifactory. You can see the results here of the CI run here.
This PR also depends on and includes code from PR #390. Once that is merged, I will rebase this one.