nicoddemus / pytest-rich

pytest + rich integration (proof of concept)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tweak GHA triggers for `test.yml` workflow

joshuadavidthomas opened this issue · comments

Currently when a PR is opened, the Test workflow is run twice for each job in the os/python version matrix, one for the push and one for the PR.

image

I wonder if there isn't a way to tweak the triggers to only run once, perhaps by removing the pull_request trigger?

Actually, this is a non issue. Dug in a bit and realized it was running twice because I was pushing directly to branches on this repo instead of my own fork. (It's what I'm used to at my day job.)

I will switch to developing on my fork and submitting PRs from it.

Yeah I always contribute from forks, even for repos I own: it is safer this way as there's no chance of an accidental commit to main, or polluting the main repo with feature branches. 👍