HEPData / hepdata_lib

Library for getting your data into HEPData
https://hepdata-lib.readthedocs.io
MIT License
16 stars 39 forks source link

Enable trusted publishing workflow to PyPI #256

Closed clelange closed 9 months ago

clelange commented 9 months ago

Fixes #165

I've added the workflow in PyPI and created the "release" environment following https://til.simonwillison.net/pypi/pypi-releases-from-github

image

📚 Documentation preview 📚: https://hepdata-lib--256.org.readthedocs.build/en/256/

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.99%. Comparing base (ee18988) to head (2adaf78).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #256 +/- ## ======================================= Coverage 87.99% 87.99% ======================================= Files 5 5 Lines 1083 1083 Branches 231 231 ======================================= Hits 953 953 Misses 91 91 Partials 39 39 ``` | [Flag](https://app.codecov.io/gh/HEPData/hepdata_lib/pull/256/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HEPData) | Coverage Δ | | |---|---|---| | [unittests-3.10](https://app.codecov.io/gh/HEPData/hepdata_lib/pull/256/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HEPData) | `87.99% <ø> (ø)` | | | [unittests-3.6](https://app.codecov.io/gh/HEPData/hepdata_lib/pull/256/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HEPData) | `87.68% <ø> (ø)` | | | [unittests-3.7](https://app.codecov.io/gh/HEPData/hepdata_lib/pull/256/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HEPData) | `87.68% <ø> (ø)` | | | [unittests-3.8](https://app.codecov.io/gh/HEPData/hepdata_lib/pull/256/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HEPData) | `87.81% <ø> (ø)` | | | [unittests-3.9](https://app.codecov.io/gh/HEPData/hepdata_lib/pull/256/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HEPData) | `87.81% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HEPData#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

clelange commented 9 months ago

Removed tests from this since they are more complicated to set up and anyway run as part of a separate test workflow.