It’s over. Katharine McPhee and Elyes Gabel have called it quits on their relationship after almost two years together, a source confirms to Us Weekly.

The couple — who work together on the TV drama Scorpion — split last month. “It’s amicable and they remain friends,” the source tells Us of the costars. Just Jared also quoted an insider saying, “They’re still friends and work together almost every day. They still love each other but just couldn’t make things work.”

McPhee, 32, and Gabel, 33, were first linked in August 2014 when they were spotted kissing in Los Angeles between takes of their CBS series.

The American Idol season 5 runner-up was previously married to Nick Cokas. The pair’s relationship fell apart after she was photographed making out with her former Smash director, Michael Morris, during a brief split from Cokas in October 2013. At the time, both McPhee and Morris were still legally married; he was tied to actress Mary McCormack, the mother of his three daughters.

After trying to salvage her six-year marriage to Cokas, McPhee ultimately filed for divorce in May 2014. Four months later, Us Weekly exclusively revealed that she was dating Gabel.

Earlier this week, the “Lick My Lips” songstress attended San Diego Comic-Con for the Scorpion panel, noticeably without her boyfriend.

Clad in a sleeveless short rhinestone dress and tan strappy heels, McPhee looked stunning as she walked the red carpet before taking the stage with costars Ari Stidham, Eddie Kaye Thomas and Jadyn Wong at the San Diego Convention Center on Thursday, July 21.

Scorpion, which was renewed for a third season in March, returns to CBS on October 3.

Thank You!

You have successfully subscribed.

ncG1vNJzZmivp6x7tr%2FMmp6aspmjsm%2BvzqZmnJ2cmq%2BztdOyZKedp6h8r7HWrGakmaSdrrO1zZ5kppugnbKmecCnm2adnK6ytHnGmpmepF2ova2102aubWtgbYBxew%3D%3D