Project-Platypus / Platypus

A Free and Open Source Python Library for Multiobjective Optimization
GNU General Public License v3.0
553 stars 152 forks source link

CI: Create workflow that builds and deploys to PyPI #195

Closed EwoutH closed 1 year ago

EwoutH commented 1 year ago

Add a CI workflow that automatically builds Platypus-Opt and deploys a wheel to PyPI. If runs on each push and pull request to test wheel building, but only deploys to PyPI when a tag is created.

To deploy to PyPI is uses the PyPI publish GitHub Action. It uses the API token feature of PyPI, which is recommended to restrict the access the action has.

The secret used in ${{ secrets.PYPI_API_TOKEN }} needs to be created on the settings page. See Creating & using secrets.

EwoutH commented 1 year ago

Thanks for merging, looks like it's working as expected!

Screenshot_806
EwoutH commented 1 year ago

I did a quick test run on our project, and it finds, installs and runs the wheel perfectly!

Always nice to see that a new build systems works.