2424 with :
2525 msg : |
2626 This branch is work on a ticket in the NHS Digital AMB JIRA Project. Here's a handy link to the ticket:
27- # [${{ env.TICKET_NAME }}](https://nhsd-jira.digital.nhs.uk/browse/${{ env.TICKET_NAME}})
28-
29- # coverage:
30- # runs-on: ubuntu-latest
31- # steps:
32- # - name: Checkout code
33- # uses: actions/checkout@v2
34-
35- # - name: Set up Python
36- # uses: actions/setup-python@v3
37- # with:
38- # python-version: '3.10'
39-
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
47-
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
51-
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
60-
61- # - name: List coverage report file
62- # run: |
63- # ls -R /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend/coverage_html_report
64-
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
70-
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 }}
27+ # [${{ env.TICKET_NAME }}](https://nhsd-jira.digital.nhs.uk/browse/${{ env.TICKET_NAME}})
0 commit comments