1313 if : ${{ !contains(github.event.pull_request.labels.*.name, 'dependency') }}
1414 runs-on : ubuntu-latest
1515
16-
1716 steps :
1817 - uses : actions/checkout@v4
1918 with :
@@ -26,10 +25,10 @@ jobs:
2625 run : |
2726 aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
2827 aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
29-
28+
3029 - name : Initialize Unit Test Failure Tracker
3130 run : echo "false" > test_failed.txt
32-
31+
3332 - name : Run unittest with filenameprocessor-coverage
3433 id : filenameprocessor
3534 continue-on-error : true
@@ -38,23 +37,20 @@ jobs:
3837 poetry run coverage run --source=filenameprocessor -m unittest discover -s filenameprocessor || echo "filenameprocessor tests failed" >> failed_tests.txt
3938 poetry run coverage xml -o sonarcloud-coverage-filenameprocessor-coverage.xml
4039
41-
4240 - name : Run unittest with recordprocessor-coverage
4341 id : recordprocessor
4442 continue-on-error : true
4543 run : |
4644 poetry run coverage run --source=recordprocessor -m unittest discover -s recordprocessor || echo "recordprocessor tests failed" >> failed_tests.txt
4745 poetry run coverage xml -o sonarcloud-coverage-recordprocessor-coverage.xml
4846
49-
5047 - name : Run unittest with recordforwarder-coverage
5148 id : recordforwarder
5249 continue-on-error : true
5350 run : |
5451 PYTHONPATH=$(pwd)/backend:$(pwd)/backend/tests poetry run coverage run --source=backend -m unittest discover -s backend/tests -p "*batch*.py" || echo "recordforwarder tests failed" >> failed_tests.txt
5552 poetry run coverage xml -o sonarcloud-coverage-recordforwarder-coverage.xml
5653
57-
5854 - name : Run unittest with coverage-ack-lambda
5955 id : acklambda
6056 continue-on-error : true
7066 pip install poetry==1.8.4 mypy-boto3-dynamodb==1.35.54 boto3==1.26.165 coverage botocore==1.29.165 jmespath==1.0.1 python-dateutil==2.9.0 urllib3==1.26.20 s3transfer==0.6.2 typing-extensions==4.12.2
7167 poetry run coverage run --source=delta_backend -m unittest discover -s delta_backend || echo "delta tests failed" >> failed_tests.txt
7268 poetry run coverage xml -o sonarcloud-coverage-delta.xml
73-
69+
7470 - name : Run unittest with coverage-fhir-api
7571 id : fhirapi
7672 continue-on-error : true
7975 poetry run coverage run --source=backend -m unittest discover -s backend || echo "fhir-api tests failed" >> failed_tests.txt
8076 poetry run coverage xml -o sonarcloud-coverage.xml
8177
78+ - name : Run unittest with coverage-mesh-processor
79+ id : meshprocessor
80+ continue-on-error : true
81+ run : |
82+ pip install poetry==1.8.4 moto==4.2.11 coverage redis botocore==1.35.49 simplejson responses structlog fhir.resources jsonpath_ng pydantic==1.10.13 requests aws-lambda-typing cffi pyjwt boto3-stubs-lite[dynamodb]~=1.26.90 python-stdnum==1.20
83+ poetry run coverage run --source=mesh_processor -m unittest discover -s mesh_processor || echo "mesh_processor tests failed" >> failed_tests.txt
84+ poetry run coverage xml -o sonarcloud-mesh_processor-coverage.xml
85+
8286 - name : Run Test Failure Summary
8387 id : check_failure
8488 run : |
98102 - name : SonarCloud Scan
99103 uses : SonarSource/sonarqube-scan-action@master
100104 env :
101- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
102- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
105+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
106+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
0 commit comments