# Adding new workflows in Github Actions

**URL:** <https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151>\
**Category:** Core Development\
**Created:** [July 14, 2026, 3:19pm UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151 "2026-07-14T15:19:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![YvesDup](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/yvesdup/32/10248_2.png) [@YvesDup](https://discuss.python.org/u/YvesDup)\
**Post date:** [July 14, 2026, 3:19pm UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151/1 "2026-07-14T15:19:53Z")

</div>

Hi everybody

I frequently need to run only a `Sanitizer` workflow (from the `Tests` workflow) via the github Actions. Currently, is it possible ?  
Does the `reusable Sanitizer` workflow proceed for that ? Or what is this workflow used for ?

If I have to ask for a new workflow, should I open a new issue ?  
Thank for answering  
Yves

---

<div class="post-metadata">

**Author:** ![brettcannon](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/brettcannon/32/34895_2.png) [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Post date:** [July 14, 2026, 10:32pm UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151/2 "2026-07-14T22:32:04Z")

</div>

> [@YvesDup](#):
>
> I frequently need to run only a `Sanitizer` workflow (from the `Tests` workflow) via the github Actions. Currently, is it possible ?

Are you doing this while working on a PR for CPython and you aren’t ready to run all the other checks?

---

<div class="post-metadata">

**Author:** ![YvesDup](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/yvesdup/32/10248_2.png) [@YvesDup](https://discuss.python.org/u/YvesDup)\
**Post date:** [July 15, 2026, 10:21am UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151/3 "2026-07-15T10:21:01Z")

</div>

> [@brettcannon](#):
>
> Are you doing this while working on a PR for CPython and you aren’t ready to run all the other checks?

I was working on a PR for CPython ([Queue Shutdown](https://github.com/python/cpython/pull/138828)). All CI was green except `Sanitizer` workflows. So I was forced to duplicate the branch, ran all the `Tests` workflow even though I only needed `Sanitizer` part.

---

<div class="post-metadata">

**Author:** ![ngoldbaum](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/ngoldbaum/32/12276_2.png) [@ngoldbaum](https://discuss.python.org/u/ngoldbaum)\
**Post date:** [July 15, 2026, 10:25am UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151/4 "2026-07-15T10:25:03Z")

</div>

When I’ve done things like this in the past I’ve enabled CI in my fork and edited the CI configuration to add e.g. a `workflow_dispatch` or edit CI config so only the one job I care about runs.

That said, I’d try to do local builds first and only fall back to debugging with CI if that’s impossible for some reason. Have you tried doing sanitizer builds and reproducing the issue you’re running into on your local dev setup?

---

<div class="post-metadata">

**Author:** ![YvesDup](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/yvesdup/32/10248_2.png) [@YvesDup](https://discuss.python.org/u/YvesDup)\
**Post date:** [July 15, 2026, 1:12pm UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151/5 "2026-07-15T13:12:33Z")

</div>

> [@ngoldbaum](#):
>
> That said, I’d try to do local builds first and only fall back to debugging with CI if that’s impossible for some reason. Have you tried doing sanitizer builds and reproducing the issue you’re running into on your local dev setup. I am going to

Hi Nathan,  
thank for reply. I am working on macOS, and unfortunately `Santizers` workflows run on Ubuntu.  
I have installed Mutipass on my macOS, but most of time, `Sanitizers` workflow results are not identical.  
That why I was thnking about a new local `Sanitizer` workflow . And except if I miss something, this is not so simple: the workflow must be present in the `main` branch of my fork (to build the list of available workflow from Github Action) and the working branch to run the workflow.

So I will investigate about your recommandation regarding the edit of the CI config, even I already created a `Santizers` workflow that works fine.

---

<div class="post-metadata">

**Author:** ![hugovk](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/hugovk/32/14505_2.png) [@hugovk](https://discuss.python.org/u/hugovk)\
**Post date:** [July 15, 2026, 2:33pm UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151/6 "2026-07-15T14:33:16Z")

</div>

> [@YvesDup](#):
>
> And except if I miss something, this is not so simple: the workflow must be present in the `main` branch of my fork (to build the list of available workflow from Github Action) and the working branch to run the workflow.

GitHub Actions will run for branches matching `main` or `3.*`. I usually name my branches like `3.16-myfeature`.

---

<div class="post-metadata">

**Author:** ![YvesDup](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/yvesdup/32/10248_2.png) [@YvesDup](https://discuss.python.org/u/YvesDup)\
**Post date:** [July 16, 2026, 8:28am UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151/7 "2026-07-16T08:28:58Z")

</div>

> [@ngoldbaum](#):
>
> When I’ve done things like this in the past I’ve enabled CI in my fork and edited the CI configuration to add e.g. a `workflow_dispatch` or edit CI config so only the one job I care about runs

Your proposal works fine on a working branch but not on PR. that’s a good tip, Thank you

---

<div class="post-metadata">

**Author:** ![YvesDup](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/yvesdup/32/10248_2.png) [@YvesDup](https://discuss.python.org/u/YvesDup)\
**Post date:** [July 20, 2026, 8:14pm UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151/8 "2026-07-20T20:14:32Z")

</div>

I may be wrong, but am I the only contributor encountering issues with the Sanitizers/TSAN workflows, particularly false negatives?  
That’s why I’m wondering if it might be a good idea to add a new TSAN workflow that could be triggered on demand from **GitHub Action**.

---

<div class="post-metadata">

**Author:** ![brettcannon](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/brettcannon/32/34895_2.png) [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Post date:** [July 20, 2026, 9:17pm UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151/9 "2026-07-20T21:17:04Z")

</div>

> [@YvesDup](#):
>
> I may be wrong, but am I the only contributor encountering issues with the Sanitizers/TSAN workflows, particularly false negatives?

Possibly; I rarely have them fail, and if they do it’s just a one-off failure.

---

<div class="post-metadata">

**Author:** ![ngoldbaum](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/ngoldbaum/32/12276_2.png) [@ngoldbaum](https://discuss.python.org/u/ngoldbaum)\
**Post date:** [July 20, 2026, 9:58pm UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151/10 "2026-07-20T21:58:16Z")

</div>

I may be misunderstanding exactly what you mean by false negatives, what exactly are you seeing? Failed tests that are unrelated to your work? Or is it that you’d expect to see failures given what you’re working on and aren’t?

Either way: by their nature, races are flaky and don’t happen on every run. That’s one reason they’re hard to eliminate in the CI. An incorrect PR can be merged with green TSan CI and only fail later on an unrelated PR. If you are seeing TSan failures and there isn’t already an open issue for the failure you’re seeing, please open one.

---

<div class="post-metadata">

**Author:** ![YvesDup](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/yvesdup/32/10248_2.png) [@YvesDup](https://discuss.python.org/u/YvesDup)\
**Post date:** [July 21, 2026, 3:48pm UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151/11 "2026-07-21T15:48:07Z")

</div>

Thank again Nathan for your feedback.

When an error occurs related to my work, a PR, it is (often) easy to fix with a new commit.  
When the tests that fail aren’t related to my work (races for example), I’d like to find a way to easily rerun the tests. But in a PR, it is not possible without a new commit (unless I missed something). And in that case the only solution is to wait for new commits from the main branch to be merged.

In my case - errors on `Santizer` workflow - I would find it very useful to be able to run only the workflow that failed.  
For now, I don’t know if this is possible or if it’s planned.

I may be in a borderline case. Next time, I get Sanitizers failures, I’ll open an issue.

---

<div class="post-metadata">

**Author:** ![brettcannon](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/brettcannon/32/34895_2.png) [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Post date:** [July 21, 2026, 10:05pm UTC](https://discuss.python.org/t/adding-new-workflows-in-github-actions/108151/12 "2026-07-21T22:05:26Z")

</div>

> [@YvesDup](#):
>
> When the tests that fail aren’t related to my work (races for example), I’d like to find a way to easily rerun the tests. But in a PR, it is not possible without a new commit (unless I missed something).

You can close and reopen a PR to trigger CI again. And any core dev can re-run failing tests manually.
