Skip to content

Do not run the Test CI for PRs marked as draft#57

Open
nrueh wants to merge 4 commits intopotassco:masterfrom
nrueh:master
Open

Do not run the Test CI for PRs marked as draft#57
nrueh wants to merge 4 commits intopotassco:masterfrom
nrueh:master

Conversation

@nrueh
Copy link
Copy Markdown
Contributor

@nrueh nrueh commented Apr 30, 2026

This is a suggestion to reduce the number of times the Test CI is run.
In my opinion in early stages of a PR it's not necessary to run the CI for every push.
I did some googling to get the correct code but maybe there are still ways to improve this.

I also used this to updated some dependencies and increase the default Python versions for testing but I am open to other suggestions. Not sure what the (dis-)advantages of each version currently are...

@nrueh
Copy link
Copy Markdown
Contributor Author

nrueh commented Apr 30, 2026

@rkaminsk @MaxOstrowski @sthiele @susuhahnml
Let me know what you think

Copy link
Copy Markdown
Member

@rkaminsk rkaminsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And what is the issue with running the tests for drafts? I would argue that we should keep the tests running at all time. If tests temporarily fail, they can be marked as expected to fail in the code.

From my point of view the CI can also run for drafts.

Comment thread .pre-commit-config.yaml Outdated
Comment thread noxfile.py Outdated
@nrueh
Copy link
Copy Markdown
Contributor Author

nrueh commented Apr 30, 2026

In my opinion it can be a annoying when I am pushing some code that I know already is not passing the tests and it feels like a lot of work to manually disable them temporarily. For example, for encoding or fact format changes with clintest. If you still want to run the tests, you can run them locally with little effort.
But it is also not a huge problem and apparently we don't have problems with CI time so I am curious about people's opinions.

@rkaminsk
Copy link
Copy Markdown
Member

The case you are describing should be rather niche. When refactoring, it is best to keep the tests running at all time. Like this we catch bugs early. If you want to skip the CI, I would suggest to tag the commit: https://docs.github.com/en/actions/how-tos/manage-workflow-runs/skip-workflow-runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants