Nick Tepesch hadn’t won in an eight-start stretch and hadn’t posted a quality start in more than a month.

The Houston Astros were the team, it seemed, who could cure it all. But the worst team in the majors only cured half of it.

Tepesch earned a win for the first time since May 12 but couldn’t complete a quality start in a 10-5 Rangers victory to open a three-game series.

“It was a good night,” Tepesch said. “As long as we win, I’m not really worried about [my wins]. We played great defense and hit the ball well.”

Tepesch had the luxury of pitching with a lead all night. David Murphy had a two-run homer in the first, Nelson Cruz came through with a grand slam in the second and Adrian Beltre highlighted a three-run fourth with a two-run blast.

And Tepesch cruised through five innings with relative ease.

Jose Altuve started the game with a single to center, but Tepesch responded by retiring the next 10 batters. He struck out the side in the second and had set his career high in strikeouts with nine by the end of the fourth inning.

He then worked out of a jam in the fifth. With runners at the corners and one out, Tepesch induced an inning-ending, double-play grounder by Ronny Cedeno.

Things unraveled in the sixth for Tepesch, though, who once again struggled the third time through a lineup. Altuve singled to left, Brett Wallace drew a walk, and then Jason Castro and Chris Carter had RBI hits to end Tepesch’s night.

The final line for Tepesch read four runs on seven hits over five-plus innings. Opponents are batting .465 against him the third time through the lineup. But getting his first win in almost two months outweighed all of that.