SEATTLE — Myles Straw led off the 14th inning with a triple and scored on Yuli Gurriel’s sacrifice fly, and the Houston Astros outlasted the pesky Seattle Mariners 8-7 on Thursday.

Seattle staged tying rallies in the ninth and 10th innings and loaded the bases in the bottom of the 14th thanks to three walks by Chris Devenski (1-0), but the right-hander got Shed Long to fly out to end it.

Houston led 5-1 after 6 1/2 innings, but Seattle chipped away and tied it at 6 in the ninth on Edwin Encarnacion’s single against closer Roberto Osuna. That prevented Justin Verlander from becoming the first 10-game winner in the AL.

Josh Reddick’s pinch-hit sacrifice fly in the 10th gave the Astros to a 7-6 lead, before Omar Narváez tied it with his ninth homer of the season.

Matt Festa (0-1) allowed Straw’s triple — a ball that was played poorly by right fielder Domingo Santana — and one walk in the 14th for the Mariners.

Austin Adams started the game as an opener for Seattle and couldn’t get through the first inning. He gave up three runs, three hits and two walks, including a two-run homer to Robinson Chirinos, before being replaced by Tommy Milone.

Chirinos has homered in four consecutive games, tying Cliff Johnson’s club record from 1975.

Alex Bregman’s 18th homer gave Houston a 4-1 lead in the fifth. Rookie Jack Mayfield hit his first career homer in the seventh inning to make it 5-1.

The Mariners rallied for three runs in the seventh inning on five singles. After Houston added a run in the eighth, the Mariners scored again in the bottom of the inning before Osuna entered.

It was the first blown save of the season for Osuna. Verlander allowed three runs, five hits and no walks in 6 1/3 innings.

The Astros took three of four in the series and are 9-0-1 in their last 10 series.