Skip to content

Merge pull request #194 from UKHSA-Internal/fix_grapher_if_no_values_… #90

Merge pull request #194 from UKHSA-Internal/fix_grapher_if_no_values_…

Merge pull request #194 from UKHSA-Internal/fix_grapher_if_no_values_… #90

Workflow file for this run

name: Deploy ETL Functions to Azure Sandbox Environment.....
###
on:
push:
branches:
- sandbox
env:
AZURE_FUNCTIONAPP_NAME: 'c19dashsbuketlfunc'
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.'
PYTHON_VERSION: '3.8'
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy ETL Functions to Sandbox Environment
environment: sandbox
steps:
- name: 'Checkout GitHub action'
uses: actions/checkout@v2
- name: Setup Python ${{ env.PYTHON_VERSION }} Environment
uses: actions/setup-python@v1
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: 'Resolve Project Dependencies Using Pip'
shell: bash
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
python -m pip install --upgrade pip
pip install -r requirements.txt --target=".python_packages/lib/site-packages"
popd
- name: 'Run Azure Functions action'
uses: Azure/functions-action@v1
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }}
test:
runs-on: ubuntu-latest
name: Automated Regression Tests of COVID19 Dashboard Website
needs: deploy
steps:
# ## calls the AIQ-Automation-Covid-Dashboard workflow to run the automated tests
- name: Calls AIQ-Automation-Covid-Dashboard workflow to run the automated tests
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.ACCESS_TOKEN }} " \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/UKHSA-Internal/AIQ-Automation-Covid-Dashboard/actions/workflows/CovidDashboard_CI.yml/dispatches \
-d '{"ref":"main","inputs": { "DExecution_Env":"Sandbox", "DScenarioNameTest":"SmokeTests_Scenario" }}'