Run test on specific branches

This has been reported a few times. Move your branch restriction to a workflow and it will work - it seems to be a bug when the restriction is applied to a job.