OpenVoiceOS / ovos_skill_manager

skill installer for OVOS
Apache License 2.0
5 stars 6 forks source link

Add automation for publishing to PyPI #87

Closed NeonDaniel closed 2 years ago

NeonDaniel commented 2 years ago

This automates alpha versioning and publication to PyPI. A dev workflow would look like:

codecov[bot] commented 2 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (dev@89d3446). Click here to learn what that means. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##             dev      #87   +/-   ##
======================================
  Coverage       ?   59.56%           
======================================
  Files          ?       34           
  Lines          ?     2718           
  Branches       ?        0           
======================================
  Hits           ?     1619           
  Misses         ?     1099           
  Partials       ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 89d3446...495334b. Read the comment docs.

NeonDaniel commented 2 years ago

Note that this requires a PyPI token as a secret: https://github.com/OpenVoiceOS/ovos_skill_manager/pull/87/files#diff-a6a80b7ff8485f6d57b2a582f5862616a2388885e3d4e9aaebdd826ff9b7f023R39

For Neon, I added this as an org secret and then restricted the repositories that have access to it to make sure only repos that have valid workflows can use it (a templated or transferred new plugin needs to be granted permission explicitly). This means only org admins can add packages and org write permissioned users can't publish a package under the org's name