cda-tum / mqt-core

MQT Core - The Backbone of the Munich Quantum Toolkit
https://mqt.readthedocs.io/projects/core
MIT License
62 stars 31 forks source link

⚗️ upload to Test PyPI for pushes on `main` #666

Closed burgholzer closed 1 month ago

burgholzer commented 3 months ago

Description

This PR updates the CD workflow so that anytime it runs on a push to main, it uploads the resulting package to Test PyPI. This allows to battle test the packages before official releases. This will be especially important in the context of #662.

Checklist:

burgholzer commented 3 months ago

Unfortunately, it seems that this is not really feasible. Test PyPI won't accept packages with local version identifiers and setuptools-scm does not easily allow to disable local versions, e.g., based on the presence of an environment variable. Maybe sometime in the future.

burgholzer commented 1 month ago

Might have found a way to make this possible after all. Investigating further.

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 92.1%. Comparing base (aea7573) to head (0254d77). Report is 6 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/cda-tum/mqt-core/pull/666/graphs/tree.svg?width=650&height=150&src=pr&token=MqstsRKdqp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum)](https://app.codecov.io/gh/cda-tum/mqt-core/pull/666?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) ```diff @@ Coverage Diff @@ ## main #666 +/- ## ===================================== Coverage 92.1% 92.1% ===================================== Files 125 125 Lines 13757 13757 Branches 2150 2150 ===================================== + Hits 12671 12672 +1 + Misses 1086 1085 -1 ``` | [Flag](https://app.codecov.io/gh/cda-tum/mqt-core/pull/666/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | Coverage Δ | | |---|---|---| | [cpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/666/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `91.8% <ø> (+<0.1%)` | :arrow_up: | | [python](https://app.codecov.io/gh/cda-tum/mqt-core/pull/666/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `99.7% <ø> (ø)` | | [see 1 file with indirect coverage changes](https://app.codecov.io/gh/cda-tum/mqt-core/pull/666/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum)