0% Coverage for Python YAML pipeline build

Hi, I have copied a sonarQube set up from a different project in a YAML file which is run in ADO:

pool:
  vmImage: 'ubuntu-18.04'

steps:
- checkout: self

- task: UsePythonVersion@0
  displayName: 'Use Python 3.x'

- task: SonarQubePrepare@4
  inputs:
SonarQube: 'xxxxxxx'
scannerMode: 'CLI'
configMode: 'manual'
cliProjectKey: 'xxxxxxx'
cliProjectName: 'xxxxxxx'
cliSources: './sample/'

- task: SonarQubeAnalyze@4
  condition: succeededOrFailed() # this step will always run, unless the pipeline is canceled

- task: SonarQubePublish@4
  condition: succeededOrFailed() # this step will always run, unless the pipeline is canceled
  inputs:
pollingTimeoutSec: '300'

However, when I create a new branch and push it, I get 0% coverage. But security issues are picked up:

This is my sonar-project.properties file:
sonar.projectKey=xxxxxx
sonar.sources=src
sonar.exclusions=**/*.java

I can’t seem to figure out why the checks aren’t happening for code smells, bugs, etc.?

Any help would be much appreciated.