Skip to content

Commit

Permalink
integration tests trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
l0uden committed Jul 9, 2024
1 parent 4c95993 commit 36d22cf
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/vizro-qa-notebooks-tests-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Vizro qa notebooks tests trigger

on:
push:
branches: [main]
pull_request:
branches:
- main

env:
PYTHONUNBUFFERED: 1
FORCE_COLOR: 1

jobs:
vizro-qa-trigger-fork:
if: ${{ github.event.pull_request.head.repo.fork }}
name: Vizro qa notebooks tests trigger
runs-on: ubuntu-latest
steps:
- name: Passed fork step
run: echo "Success!"

vizro-qa-trigger:
if: ${{ ! github.event.pull_request.head.repo.fork }}
name: Vizro qa notebooks tests trigger
environment: vizro_secrets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Tests trigger
run: |
export INPUT_OWNER=${{ secrets.ORG }}
export INPUT_REPO=${{ secrets.QA_REPO }}
export INPUT_WORKFLOW_FILE_NAME=${{ secrets.NOTEBOOKS_TEST_FILE }}
export INPUT_GITHUB_TOKEN=${{ secrets.VIZRO_SVC_PAT }}
export INPUT_REF=${{ github.head_ref }}
tools/trigger-workflow-and-wait.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
export INPUT_OWNER=${{ secrets.ORG }}
export INPUT_REPO=${{ secrets.QA_REPO }}
export INPUT_WORKFLOW_FILE_NAME=${{ secrets.NOTEBOOKS_TEST_FILE }}
export INPUT_WORKFLOW_FILE_NAME=${{ secrets.VIZRO_QA_TESTS_FILE }}
export INPUT_GITHUB_TOKEN=${{ secrets.VIZRO_SVC_PAT }}
export INPUT_REF=${{ github.head_ref }}
tools/trigger-workflow-and-wait.sh

0 comments on commit 36d22cf

Please sign in to comment.