Skip to content

Initial commit of Dialogflow comparison app (#469) #1

Initial commit of Dialogflow comparison app (#469)

Initial commit of Dialogflow comparison app (#469) #1

---
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: VPC-SC Demo Workflow Telecom Source Test
on:
push:
branches:
- main
paths:
- 'dialogflow-cx/vpc-sc-demo/components/webhook/telecom-webhook-src/**'
pull_request:
branches:
- main
paths:
- 'dialogflow-cx/vpc-sc-demo/components/webhook/telecom-webhook-src/**'
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
pytest:
name: VPC-SC Demo Telecom Source Test Job
runs-on: ubuntu-latest
defaults:
run:
working-directory: dialogflow-cx/vpc-sc-demo/components/webhook/telecom-webhook-src
strategy:
matrix:
python: ["3.9"]
steps:
- name: Harden Runner
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Install Requirements
run: |-
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-test.txt
- name: Run Pytest and Generate Coverage Report
run: |
coverage run -m pytest --cov=./ --cov-report=xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
...