MIAMI — Clayton Richard became the latest pitcher to flirt with the first no-hitter in San Diego Padres’ history, losing his bid with two outs in the seventh inning Sunday during a 3-1 victory against the Miami Marlins.

The Padres are the only team in the majors that has never thrown a no-hitter. They have played 7,881 games since starting out in 1969.

Richard (5-6) took a shutout into the seventh, but Miguel Rojas grounded a clean single up the middle to spoil Richard’s try and JT Riddle followed with an RBI single.

Richard gave up two hits in seven innings, striking out five and walking three. He tied for the NL lead in losses last year with 15.

PHILLIES 4, BREWERS 3: Zach Eflin tied his career high with nine strikeouts over six innings and Philadelphia won at home to snap a four-game losing streak.

Eflin (3-2) had his second strong start after two subpar outings, allowing two runs and three hits with one walk. Rhys Hoskins drove in two runs, including a go-ahead sacrifice fly in a three-run fifth off reliever Dan Jennings (3-2) in the Phillies’ fourth win in 14 games.

REDS 6, CARDINALS 3: Center fielder Billy Hamilton made several key defensive plays and Cincinnati won at home to end its 13-game losing streak to St. Louis.

Hamilton threw out two runners, then made outstanding catches against the wall in the eighth and ninth innings. He also tripled and scored twice.

PIRATES 7, CUBS 1: Josh Harrison led off the game with a home run and Gregory Polanco hit a bases-loaded triple, leading Pittsburgh at Chicago.

Pittsburgh, which had totaled three runs in its previous four road games, ended its losing streak at three.

DODGERS 7, BRAVES 2: Max Muncy homered in his third straight game, Logan Forsythe and Enrique Hernandez also connected, and Los Angeles won at home.

Muncy has 12 home runs, matching the total he hit last year while spending the whole season at Triple-A Oklahoma City. He hit a solo drive in the fifth inning.

GIANTS 2, NATIONALS 0: Brandon Crawford went 4 for 4 with a two-run homer at Washington, and San Francisco dealt Max Scherzer his first loss in more than two months.

DIAMONDBACKS 8, ROCKIES 3: Paul Goldschmidt doubled and tripled, and had two RBI as Arizona won at Denver.

AMERICAN LEAGUE

INDIANS 9, TIGERS 2: Corey Kluber allowed two runs in eight innings as Cleveland won at Detroit.

MARINERS 5, RAYS 4: Right fielder Mitch Haniger threw out Johnny Field at the plate to end the game, and Seattle held on at St. Petersburg, Florida, for its 17th win in 22 games.

BLUE JAYS 13, ORIOLES 3: Curtis Granderson had four hits and a career-high six RBI, Marco Estrada pitched six innings to snap an eight-start winless streak and Toronto won at home to complete a four-game sweep.

TWINS 7, ANGELS 5: Jake Cave had a career-high three hits, including a home run, and Minnesota held on at Minneapolis.

ASTROS 8, RANGERS 7: George Springer scored the tiebreaking run in the ninth inning on a balk after homering on the first pitch of the game, and Houston swept its Texas rival in a four-game series for the first time, winning at Arlington, Texas, despite blowing a six-run lead.

ATHLETICS 3, ROYALS 2: Matt Chapman homered leading off the eighth as Oakland won at home.