There's a clause that explicitly bans religious tests for federal public office[1], and a landmark SCOTUS case clarified that state governments cannot do this either[2].
1: https://en.m.wikipedia.org/wiki/No_Religious_Test_Clause
2: https://en.m.wikipedia.org/wiki/Torcaso_v._Watkins