sdsc-ordes / modos-api

Python API to manage multi-omics digital objects
https://sdsc-ordes.github.io/modos-api
Apache License 2.0
0 stars 0 forks source link

ci: build and publish at pypi/test-pypi #95

Closed almutlue closed 3 months ago

almutlue commented 3 months ago

Scope:

Two new github action workflows with 2 jobs each:

The publishing job uses trusted publisher management for authentication, which requires write permission. To not elevate privileges building and publishing were separated into two different ci-jobs as recommended.

Limitations:

So far only poetry-test-publish was run (see output) and tested. Both workflows are build analogous, but I think we have to wait for the next release to check poetry-publish?

almutlue commented 3 months ago

Good point - I added a run-tests job that imports the test workflow to both workflows. Both the building and publishing jobs depend on the test job to make sure that it fails early enough.

Publishing fails in the current test-publish action because the current version already exists at test-pypi. To solve this, it is suggested to make dev releases on pypi (see https://github.com/pypi/warehouse/issues/726), but I thought it is not necessary, because the changes should not affect publishing?