Skip to content

Commit

Permalink
added code
Browse files Browse the repository at this point in the history
  • Loading branch information
ASubaran committed Oct 30, 2024
1 parent 51ac8b1 commit b428666
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/sonarcube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,27 @@ jobs:
run: |
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
- name: Run unittest with coverage
- name: Run unittest with filenameprocessor-coverage
run: |
pwd
pip install poetry moto==4.2.11 coverage redis botocore==1.35.49 simplejson
poetry run coverage run --source=filenameprocessor -m unittest discover -s filenameprocessor
poetry run coverage xml -o sonarcloud-coverage.xml
# working-directory: "/home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend"
poetry run coverage xml -o filenameprocessor-coverage.xml
- name: Run unittest with recordprocessor-coverage
run: |
pwd
pip install poetry moto==4.2.11 coverage redis botocore==1.35.49 simplejson
poetry run coverage run --source=recordprocessor -m unittest discover -s recordprocessor
poetry run coverage xml -o recordprocessor-coverage.xml
- name: Run unittest with recordforwarder-coverage
run: |
pwd
pip install poetry moto==4.2.11 coverage redis botocore==1.35.49 simplejson
poetry run coverage run --source=recordforwarder -m unittest discover -s recordforwarder
poetry run coverage xml -o recordforwarder-coverage.xml
- name: Aggregate coverage report
run: |
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ sonar.projectKey=NHSDigital_immunisation-batch
sonar.organization=nhsdigital
sonar.host.url=https://sonarcloud.io
sonar.python.version=3.11
sonar.python.coverage.reportPaths=sonarcloud-coverage.xml
sonar.python.coverage.reportPaths=filenameprocessor-coverage.xml,recordprocessor-coverage.xml ,recordforwarder-coverage.xml

0 comments on commit b428666

Please sign in to comment.