-
Notifications
You must be signed in to change notification settings - Fork 60
Add proper testing to CI + some modification to release procedure. #1148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…wheels, check version from local file and not from testPyPI, uploading and signing is commneted for CI test in fork
|
@mretegan can you please check |
…empty secret for PyPI and testPyPI. Add local option fro release - no uploads, no tags, no version check.
|
Few additions:
2 and 3 were added after discussion with @mretegan since he had similiar issues to mine described in "notes" of first comment: Moreover, universal DMG is created and just not signed if secrets are missing (I did not know it) - so I've tested the unsigned DMG as well. test of "force" option - https://github.com/sergey-yaroslavtsev/pymca_ci_mod/actions/runs/19698502347 |
|
The default names are not very descriptive. I would use something like this: on:
release:
types: [published]
workflow_dispatch:
inputs:
mode:
description: "Release mode"
type: choice
options:
- standard # check for version change, release if new.
- force # ignore version check, useful for retrying failed releases
- dry-run # build only, not tag, upload, or sign
default: 'standard'The complete file is here: https://github.com/mretegan/pymca/blob/CI_mod/.github/workflows/Release.yml. The Also, now that we can build without releasing, you can remove |
|
Did not agree with "standard" as it is actually do nothing on purpose as safety precaution. Everything else is OK - thanks. Sorry for "test" commit - I've misunderstood Marius's previous "force-pushed". |
|
@sergey-yaroslavtsev I pushed a few changes to ensure that the macOS app is signed, modified the text in |
|
I think these explicit checks of secrets existence breaks the idea of "dry-run". Because now one is not able to run CI in "dry-run" mode if APPLE secrets do not exist. If i am not mistaken - for |
Incorrect. CI works and pass empty string for secret if do not exist. |
|
No uploads to testPyPI since it is not used anymore in further steps. testPyPI secret is removed from workflow. Upload to PyPI happens after all steps (to avoid any mess in PyPI). |

patternas suggested by @t20100TEST_APP_FUNCTIONin_MacOS.ymlsince test function is now only two linesexit $LASTEXITCODEandset -e.src.tgzto the release assets - so now assets should completely mimic SourceForgeCONTRIBUTION.rstNotes:
complicatedsince uploading and signing parts should be commented - hard to do full test outside of main repo - hopefully significant modifications will not be required in nearest futureIf you think commit history is "dirty" I can redo it from fresh branch.