Skip to content

Integrating Demos Tests in the CI #14

Integrating Demos Tests in the CI

Integrating Demos Tests in the CI #14

Workflow file for this run

name: E2E-QA-and-Deployment
on:
push:
branches:
- ci-testing
- main
- release/* #ToDo: add a release branch
pull_request:
workflow_dispatch:
jobs:
run-test-basic-demos:
name: learn-the-basics
uses: ./.github/workflows/_basic-test.yml
start-vm:
needs: run-test-basic-demos
runs-on: ubuntu-latest
if: always() # Run this job always, regardless of the status of run-test-basics
steps:
- name: Checkout Demos🛎
uses: actions/checkout@v2
with:
path: demos
persist-credentials: false
submodules: "recursive"
fetch-depth: 1
- name: Install clients for GCP/Mongo
run: |
pip3 install pymongo google-api-python-client paramiko==2.7.1
- name: Start GPU VM
run: |
cd demos/tests/auth
mkdir -p ~/.ssh
touch ~/.ssh/id_rsa
echo "${{ secrets.SSH_KEY }}" > $HOME/.ssh/id_rsa
chmod 600 $HOME/.ssh/id_rsa
python3 db_auth.py ${{ secrets.DB_ENDPOINT }} ${{ secrets.DB_OBJ_ID }}
python3 vm_auth.py ${{ secrets.SSH_USERNAME }} ${{ secrets.SSH_PASSPHRASE }} "false"
run-test-example-demos:
needs: activate-vm

Check failure on line 44 in .github/workflows/run-test-suite.yml

View workflow run for this annotation

GitHub Actions / E2E-QA-and-Deployment

Invalid workflow file

The workflow is not valid. .github/workflows/run-test-suite.yml (Line: 44, Col: 12): Job 'run-test-example-demos' depends on unknown job 'activate-vm'. .github/workflows/run-test-suite.yml (Line: 49, Col: 12): Job 'stop-vm' depends on job 'run-test-example-demos' which creates a cycle in the dependency graph.
name: examples-and-demos
uses: ./.github/workflows/_demo-test.yml
stop-vm:
needs: run-test-example-demos
runs-on: ubuntu-latest
if: always() # Run this job always, regardless of the status of run-test
steps:
- name: Checkout Demos🛎
uses: actions/checkout@v2
with:
path: demos
persist-credentials: false
submodules: "recursive"
fetch-depth: 1
- name: Install clients for GCP/Mongo
run: |
pip3 install pymongo google-api-python-client paramiko==2.7.1
- name: Stop GPU VM
run: |
cd demos/tests/auth
python3 db_auth.py ${{ secrets.DB_ENDPOINT }} ${{ secrets.DB_OBJ_ID }}
python3 vm_auth.py ${{ secrets.SSH_USERNAME }} ${{ secrets.SSH_PASSPHRASE }} "true"