Python/pytest problemMatcher doesn't seem to work?

I’m trying to use the problemMatch defined here in actions/setup-python: https://github.com/actions/setup-python/blob/807b74f98ca701f414ddaa8a4187e7cffa93cbbd/.github/python.json

It doesn’t seem to work, you can see the log output here: https://github.com/getsentry/sentry/pull/19038/checks?check_run_id=711757943#step:21:130

In that PR I’ve also tried with a different matcher (which doesn’t work either): https://github.com/getsentry/sentry/pull/19038/files#diff-8aa942dcc12e296fcb1cbf95181de009R7

Testing the patterns in javascript with new RegExp() seem to work fine, however.

@billyvg,
Maybe you can try to reference the below file in actions/setup-python to add-matcher:

@brightran Right, so by using actions/setup-python we should have that matcher added, correct? Now that I’m looking at the log output again, I’m not so sure if the 2nd matcher works

@billyvg,
> so by using actions/setup-python we should have that matcher added, correct?
Yes, I think that’s it.

> I’m not so sure if the 2nd matcher works
According to the description from the docs about Problem Matchers (see here),

Registering two problem-matchers with the same owner will result in only the problem matcher registered last running.

if you add another Problem Matchers (using the ::add-matcher:: command) after executing the setup-python action in your workflow, the new Problem Matchers should become the only Problem Matchers in work.