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 <a href="https://play.google.com/store/apps/details?id=com.glow.android">tracking ovulation</a>. My cycles vary from 26-30days but 26 on average but every so often I have off cycles.