Skip to content

Commit d02948f

Browse files
committed
Sonorcloud
1 parent 8eb76f8 commit d02948f

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -29,59 +29,59 @@ jobs:
2929
- name: Initialize Unit Test Failure Tracker
3030
run: echo "false" > test_failed.txt
3131

32-
# - name: Run unittest with filenameprocessor-coverage
33-
# id: filenameprocessor
34-
# continue-on-error: true
35-
# run: |
36-
# pip install poetry==1.8.4 moto==4.2.11 coverage redis botocore==1.35.49 simplejson pandas freezegun 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 fakeredis
37-
# poetry run coverage run --source=filenameprocessor -m unittest discover -s filenameprocessor || echo "filenameprocessor tests failed" >> failed_tests.txt
38-
# poetry run coverage xml -o sonarcloud-coverage-filenameprocessor-coverage.xml
32+
- name: Run unittest with filenameprocessor-coverage
33+
id: filenameprocessor
34+
continue-on-error: true
35+
run: |
36+
pip install poetry==1.8.4 moto==4.2.11 coverage redis botocore==1.35.49 simplejson pandas freezegun 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 fakeredis
37+
poetry run coverage run --source=filenameprocessor -m unittest discover -s filenameprocessor || echo "filenameprocessor tests failed" >> failed_tests.txt
38+
poetry run coverage xml -o sonarcloud-coverage-filenameprocessor-coverage.xml
3939
40-
# - name: Run unittest with recordprocessor-coverage
41-
# id: recordprocessor
42-
# continue-on-error: true
43-
# run: |
44-
# poetry run coverage run --source=recordprocessor -m unittest discover -s recordprocessor || echo "recordprocessor tests failed" >> failed_tests.txt
45-
# poetry run coverage xml -o sonarcloud-coverage-recordprocessor-coverage.xml
40+
- name: Run unittest with recordprocessor-coverage
41+
id: recordprocessor
42+
continue-on-error: true
43+
run: |
44+
poetry run coverage run --source=recordprocessor -m unittest discover -s recordprocessor || echo "recordprocessor tests failed" >> failed_tests.txt
45+
poetry run coverage xml -o sonarcloud-coverage-recordprocessor-coverage.xml
4646
47-
# - name: Run unittest with recordforwarder-coverage
48-
# id: recordforwarder
49-
# continue-on-error: true
50-
# run: |
51-
# 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
52-
# poetry run coverage xml -o sonarcloud-coverage-recordforwarder-coverage.xml
47+
- name: Run unittest with recordforwarder-coverage
48+
id: recordforwarder
49+
continue-on-error: true
50+
run: |
51+
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
52+
poetry run coverage xml -o sonarcloud-coverage-recordforwarder-coverage.xml
5353
54-
# - name: Run unittest with coverage-ack-lambda
55-
# id: acklambda
56-
# continue-on-error: true
57-
# run: |
58-
# pip install poetry==1.8.4 coverage moto==4.2.11 freezegun
59-
# poetry run coverage run --source=ack_backend -m unittest discover -s ack_backend || echo "ack-lambda tests failed" >> failed_tests.txt
60-
# poetry run coverage xml -o sonarcloud-coverage-ack-lambda.xml
54+
- name: Run unittest with coverage-ack-lambda
55+
id: acklambda
56+
continue-on-error: true
57+
run: |
58+
pip install poetry==1.8.4 coverage moto==4.2.11 freezegun
59+
poetry run coverage run --source=ack_backend -m unittest discover -s ack_backend || echo "ack-lambda tests failed" >> failed_tests.txt
60+
poetry run coverage xml -o sonarcloud-coverage-ack-lambda.xml
6161
6262
- name: Run unittest with coverage-delta
6363
id: delta
6464
continue-on-error: true
6565
run: |
66-
pip install poetry==1.8.4 moto==4.2.11 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
66+
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
6767
poetry run coverage run --source=delta_backend -m unittest discover -s delta_backend || echo "delta tests failed" >> failed_tests.txt
6868
poetry run coverage xml -o sonarcloud-coverage-delta.xml
6969
70-
# - name: Run unittest with coverage-fhir-api
71-
# id: fhirapi
72-
# continue-on-error: true
73-
# run: |
74-
# 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
75-
# poetry run coverage run --source=backend -m unittest discover -s backend || echo "fhir-api tests failed" >> failed_tests.txt
76-
# poetry run coverage xml -o sonarcloud-coverage.xml
70+
- name: Run unittest with coverage-fhir-api
71+
id: fhirapi
72+
continue-on-error: true
73+
run: |
74+
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
75+
poetry run coverage run --source=backend -m unittest discover -s backend || echo "fhir-api tests failed" >> failed_tests.txt
76+
poetry run coverage xml -o sonarcloud-coverage.xml
7777
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
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
8585
8686
- name: Run Test Failure Summary
8787
id: check_failure
@@ -103,4 +103,4 @@ jobs:
103103
uses: SonarSource/sonarqube-scan-action@master
104104
env:
105105
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
106-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
106+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)