Shane Oxley, his partner Danielle Carr, and their friend Conah Smith were present when police raided their Longfellow Road home in Balby, on December 16, 2017, said prosecutor Andrew Semple.
Officers discovered 564g of the Class B drug, worth £5,640, as well as £568 in cash, drug paraphernalia, and telephones with 18 "drug-related messages".
Conor Quinn said Oxley was selling the drug to fund his own habit, but no longer uses cannabis and is now seeking qualifications.
Oxley and Carr have had since had two children, now aged 20 months and eight months.
Jane Becky said Carr was "foolish" at the time and a custodial sentence would impact on her children.
Daniel Penman said Smith had "fallen in with the wrong crowd" and struggled financially because he was making as little as £40 per week in commission from a sales job.
"He has put this short episode of drug-dealing behind him," he said.
Oxley, 25, of Longfellow Road, and Smith, 26, of Regent Street, Doncaster, both pleaded guilty to possession with intent to supply cannabis, while Carr, 23, of Longfellow Road, pleaded guilty to permitting the use of her premises to be used for supplying the drug.
Recorder Matthew Happold said they ‘had kept their noses clean.’ He handed Oxley and Smith six months, suspended for 12 months, each, with 100 and 120 hours of unpaid work respectively. Carr received a three-month curfew, from 7pm to 7am.