HOUSTON, Texas (AP) -- Gerrit Cole struck out 10 batters, including his 300th of the season, in eight strong innings, Yuli Gurriel and Jose Altuve homered and the Houston Astros beat the Texas Rangers 3-2 on Wednesday night to lock up a postseason berth.
Houston won its fifth straight and 100th game of the season, becoming one of six teams in major league history to win at least 100 games in three straight seasons. The Astros lost at least 100 games in three straight seasons from 2011-13.
The Astros (100-53) have a one-game lead on the New York Yankees, who lost 3-2 to the Los Angeles Angels, for the best record in the majors. Houston can clinch the AL West as early as Friday with a win and loss by Oakland.
Cole (18-5) allowed two runs on six hits in earning his 14th straight win. He hasn't lost since May 22 against the White Sox, a span of 20 starts. Cole struck out 10 or more for the seventh straight start, tying the club record set earlier this season by Justin Verlander.
Cole, the major league leader in strikeouts, became the third Astros pitcher to reach 300 strikeouts in a season, joining J.R. Richard, who had 313 in 1979 and 303 in 1978, and Mike Scott, who struck out 306 in 1986.
Cole struck out Shin-Soo Choo to end the sixth for his 300th of the season. After the strikeout, Cole leapt off the mound and was given a standing ovation as he walked to the dugout. Cole waved to the crowd with his glove hand and touched his chest with his throwing hand.
Roberto Osuna pitched the ninth for his 35th save.
Gurriel gave the Astros a 2-0 lead in the fifth with a two-run homer to left. Altuve hit a solo home run to lead off the seventh make the lead 3-1.
Willie Calhoun scored on a throwing error by Martín Maldonado in the seventh to cut the lead to a run. Ronald Guzmán cut the lead to 3-2 with a solo home run in the eighth.
Kolby Allard (4-1) allowed two runs on four hits with four walks and two strikeouts in five innings. The Rangers have lost five straight.
Rangers: OF Joey Gallo (wrist surgery) is uncertain to return to the Rangers by the end of the week and might not return this season, manager Chris Woodward said. Gallo has been working out and playing in games at the Rangers instructional league in Arizona, but has been experiencing soreness.
Astros: RHP Ryan Pressly (knee) could return as soon as this weekend, manager AJ Hinch said.
TUCKER'S GREAT PLAYS
Kyle Tucker robbed Scott Heineman of a home run in the third, reaching over the right field wall and bringing it back to lead off the inning. Tucker made a great throw to get Willie Calhoun out at second in the fourth. Calhoun was initially called safe, but after Houston challenged, the call was overturned.
Rangers: LHP Mike Minor (13-9, 3.33 ERA) starts a three-game series in Oakland against the Athletics on Friday. Minor was tagged for seven runs in his last start on Saturday against the Athletics.
Astros: After a day off on Thursday, RHP Zack Greinke (16-5, 2.95) starts the opener of a three-game series against the Angels on Friday. Greinke is 6-1 since being traded to Houston at the deadline.