ros-tooling / cross_compile

A tool to build ROS and ROS2 workspaces for various targets
Apache License 2.0
188 stars 60 forks source link

Automatically upload new releases to PyPI #61

Closed thomas-moulard closed 4 years ago

thomas-moulard commented 4 years ago

This uploads the new releases of this package to the test PyPI repository. We will switch the main PyPI repo, once we validate this workflow works properly.

codecov[bot] commented 4 years ago

Codecov Report

Merging #61 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #61   +/-   ##
=======================================
  Coverage   62.86%   62.86%           
=======================================
  Files           4        4           
  Lines         272      272           
=======================================
  Hits          171      171           
  Misses        101      101

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 29ae22f...2c51145. Read the comment docs.

thomas-moulard commented 4 years ago

Successful upload of the package:

[omitting pip3 output]
python3 -m twine upload --password *** --repository-url https://test.pypi.org/legacy/ --skip-existing --username *** dist/*
Uploading distributions to https://test.pypi.org/legacy/
Uploading cross_compile-0.0.1-py3-none-any.whl

  0%|          | 0.00/27.0k [00:00<?, ?B/s]
 30%|██▉       | 8.00k/27.0k [00:00<00:00, 73.6kB/s]
100%|██████████| 27.0k/27.0k [00:00<00:00, 48.1kB/s]
  Skipping cross_compile-0.0.1-py3-none-any.whl because it appears to already exist
Uploading cross_compile-0.0.1.tar.gz

  0%|          | 0.00/23.9k [00:00<?, ?B/s]
100%|██████████| 23.9k/23.9k [00:00<00:00, 49.3kB/s]
  Skipping cross_compile-0.0.1.tar.gz because it appears to already exist

I obtained this by temporarily removing && github.event_name == 'push' from test.yml to trigger an upload from this PR.

I now have reverted the change and this will only upload new versions on pushes (see the comment in test.yml to understand why).