@@ -26,56 +26,56 @@ jobs:
2626 This branch is work on a ticket in the NHS Digital AMB JIRA Project. Here's a handy link to the ticket:
2727 # [${{ env.TICKET_NAME }}](https://nhsd-jira.digital.nhs.uk/browse/${{ env.TICKET_NAME}})
2828
29- coverage :
30- runs-on : ubuntu-latest
31- steps :
32- - name : Checkout code
33- uses : actions/checkout@v2
29+ # coverage:
30+ # runs-on: ubuntu-latest
31+ # steps:
32+ # - name: Checkout code
33+ # uses: actions/checkout@v2
3434
35- - name : Set up Python
36- uses : actions/setup-python@v3
37- with :
38- python-version : ' 3.10'
35+ # - name: Set up Python
36+ # uses: actions/setup-python@v3
37+ # with:
38+ # python-version: '3.10'
3939
40- - name : Set up AWS credentials
41- env :
42- AWS_ACCESS_KEY_ID : " FOOBARKEY"
43- AWS_SECRET_ACCESS_KEY : " FOOBARSECRET"
44- run : |
45- aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
46- aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
40+ # - name: Set up AWS credentials
41+ # env:
42+ # AWS_ACCESS_KEY_ID: "FOOBARKEY"
43+ # AWS_SECRET_ACCESS_KEY: "FOOBARSECRET"
44+ # run: |
45+ # aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
46+ # aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
4747
48- - name : Install dependencies
49- run : |
50- pip install poetry 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
48+ # - name: Install dependencies
49+ # run: |
50+ # pip install poetry 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
5151
52- - name : Run unit tests and generate coverage report for filenameprocessor
53- run : |
54- mkdir -p /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend/coverage_html_report
55- coverage run -m unittest discover
56- coverage report
57- coverage xml -o /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend/coverage_html_report/test_coverage.xml
58- working-directory : " /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend"
59- continue-on-error : true
52+ # - name: Run unit tests and generate coverage report for filenameprocessor
53+ # run: |
54+ # mkdir -p /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend/coverage_html_report
55+ # coverage run -m unittest discover
56+ # coverage report
57+ # coverage xml -o /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend/coverage_html_report/test_coverage.xml
58+ # working-directory: "/home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend"
59+ # continue-on-error: true
6060
61- - name : List coverage report file
62- run : |
63- ls -R /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend/coverage_html_report
61+ # - name: List coverage report file
62+ # run: |
63+ # ls -R /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend/coverage_html_report
6464
65- - name : Aggregate coverage reports
66- run : |
67- mkdir -p /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/coverage_html_report
68- rm -rf /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/coverage_html_report/*
69- mv /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend/coverage_html_report/test_coverage.xml /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/coverage_html_report/test_coverage.xml
65+ # - name: Aggregate coverage reports
66+ # run: |
67+ # mkdir -p /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/coverage_html_report
68+ # rm -rf /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/coverage_html_report/*
69+ # mv /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend/coverage_html_report/test_coverage.xml /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/coverage_html_report/test_coverage.xml
7070
71- - name : Commit and push coverage reports
72- if : success()
73- run : |
74- git config --global user.name "github-actions[bot]"
75- git config --global user.email "github-actions[bot]@users.noreply.github.com"
76- git fetch origin ${{ github.head_ref }}
77- git checkout ${{ github.head_ref }}
78- git pull origin ${{ github.head_ref }}
79- git add /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/coverage_html_report/*.xml
80- git commit -m "Add coverage index as XML format."
81- git push origin ${{ github.head_ref }}
71+ # - name: Commit and push coverage reports
72+ # if: success()
73+ # run: |
74+ # git config --global user.name "github-actions[bot]"
75+ # git config --global user.email "github-actions[bot]@users.noreply.github.com"
76+ # git fetch origin ${{ github.head_ref }}
77+ # git checkout ${{ github.head_ref }}
78+ # git pull origin ${{ github.head_ref }}
79+ # git add /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/coverage_html_report/*.xml
80+ # git commit -m "Add coverage index as XML format."
81+ # git push origin ${{ github.head_ref }}
0 commit comments