Red_Sox_Astros_Baseball_93446

Boston’s Christian Arroyo watches his three-run homer in the second inning Thursday against the Houston Astros. David J. Phillip/Associated Press

HOUSTON — In a series where the Boston Red Sox struggled to find their offense, Martín Pérez’s best start of the season allowed them to avoid being swept by the Houston Astros.

Pérez pitched 7 2/3 scoreless innings, and the Red Sox headed into their first matchup against the New York Yankees with a 5-1 win over the Astros on Thursday.

“It was a fun game,” Pérez said. “I enjoyed it and we got the win.”

Christian Arroyo’s first home run of the season, a three-run drive in the second inning, helped the Red Sox avoid a four-game sweep. His homer gave the Red Sox more runs than they’d managed in the previous two games combined in a series where the offense struggled mightily.

“It was an all-around good ballgame,” Red Sox Manager Alex Cora said. “For how bad it was the first three days, we can have a happy flight after this one.”

Pérez (4-2) yielded six hits and struck out four in his longest start this season to win his fourth straight decision.

Advertisement

“Today he was on top of his game,” Cora said. “He was amazing. He’s been amazing the whole season. We’re really happy with where he’s at.”

He had retired eight of the previous nine batters when Garrett Stubbs singled with one out in the eighth. He walked Aledmys Díaz with two outs, and Adam Ottavino retired Alex Bregman to end the inning.

Brandon Workman, signed to a minor league contract last month after he was released by the Chicago Cubs, was brought up from Triple-A Worcester and made his first Red Sox appearance since he was traded to Philadelphia last August. The 32-year-old right-hander, who pitched for Boston from 2013-14 and 2017-20, gave up Yuli Gurriel’s eighth home run with one out in the ninth.

Boston headed to Yankee Stadium in second place in the AL East, two games behind Tampa Bay and 2 1/2 games in front on the third-place Yankees.

Cora was happy to see his team get a couple of big hits but knows the offense still needs to do more.

“It was better,” he said. “It seems like we were able to slow down the at-bats today and you saw the results.”

Advertisement

Houston starter Jake Odorizzi (0-3) labored through three innings in his second start after missing a month because of a strained muscle in his right arm. He allowed three runs, four hits and three walks. Odorizzi’s tough day ended a franchise-record streak of seven straight games in which Houston’s starter had allowed just one run.

“It’s just a bad-command start,” Odorizzi said. “I wouldn’t say my stuff was good at any point today.”

Rafael Devers opened the second inning with a double, Hunter Renfroe walked and Arroyo homered into the left-field seats for a 3-0 lead.

Boston tacked on two runs in the seventh inning on a double by Xander Bogaerts.

The Astros had outscored the Red Sox 18-4 in the first three games of this series but had trouble stringing hits together as their four-game winning streak was snapped.

Houston had a couple of chances to cut into the lead early but came up short both times. Díaz doubled with one out in the first, but he was caught trying to steal third with two outs.

Advertisement

The Astros had just two hits before Gurriel singled with no outs in the fifth. Chas McCormick singled with one out, but Pérez retired Myles Straw and Stubbs to end the threat.

TRAINER’S ROOM

Red Sox: Right-hander Ryan Brasier (strained left calf) is scheduled to throw live batting practice in Florida on Friday, and if that goes well, he could begin a rehabilitation assignment soon after that.

Astros: Reliever Kent Emanuel announced on social media that he would have season-ending surgery on his left ulnar collateral ligament. He has been on the injured list since May 26 because of left elbow soreness. … Outfielder Michael Brantley (right hamstring tightness) is eligible to come off the injured list on Friday, but it’s unclear if he will. Brantley hasn’t played since May 23.

EJECTED

Cora was ejected by plate umpire Lance Barrett for arguing a called third strike on Kevin Plawecki for the first out of the sixth inning. Cora stood in front of Barrett at home plate speaking animatedly for a bit before he was tossed.

“I didn’t agree with the strike zone,” Cora said. “I was arguing balls and strikes and you can’t do that.”