When to take a pregnancy test?

I had confirmed ovulation on July 5th when is the soonest I can take a test and when is the most accurate, my cycles aren’t exactly regular but this was my first month tracking ovulation. My cycles vary from 26-30days but 26 on average but every so often I have off cycles.