Does it rain in June and july
Turkey is an extremely large country. My guess is that weather varies considerably from place to place. The Wikipedia entries for cities usually include a climate-summary chart with some monthly averages. There's usually at least one measure of precipitation included. You can check your destinations on Wikipedia. Here's Istanbul:
Scroll down until you see a very colorful chart.
Of course it does!!! What are you asking? That a rain jacket and wear water proof shoes.
Summer tends to be the dry season in most of Turkey, although rain is always possible.
You might want to check weatherspark for historical weather info by city.
Per RS tour description for Turkey, 24 and 28 days with no rain for June & July:
https://www.ricksteves.com/tours/greece-turkey/turkey-2023
Look under When to Go & Weather
We may have had moments of light rain during our 2022 Best of Istanbul tour in late May. I don't recall rain during our Best of Turkey tour in early June. We were prepared with rain shells nonetheless.