Skip to content

[CI] Move tests from CircleCI to GitHub #19

[CI] Move tests from CircleCI to GitHub

[CI] Move tests from CircleCI to GitHub #19

name: Vizro QA tests trigger
on:
push:
branches: [main]
pull_request:
branches:
- main
env:
PYTHONUNBUFFERED: 1
FORCE_COLOR: 1
jobs:
vizro-qa-test-trigger-fork:
if: ${{ github.event.pull_request.head.repo.fork }}
name: Vizro QA ${{ matrix.label }} trigger
runs-on: ubuntu-latest
strategy:
matrix:
include:
- label: integration tests
- label: notebooks tests
steps:
- name: Passed fork step
run: echo "Success!"
vizro-qa-tests-trigger:
if: ${{ ! github.event.pull_request.head.repo.fork }}
name: Vizro QA ${{ matrix.label }} trigger
runs-on: ubuntu-latest
strategy:
matrix:
include:
- label: integration tests
file: "${{ secrets.VIZRO_QA_INTEGRATION_TESTS_WORKFLOW }}"

Check failure on line 36 in .github/workflows/vizro-qa-tests-trigger.yml

View workflow run for this annotation

GitHub Actions / Vizro QA tests trigger

Invalid workflow file

The workflow is not valid. .github/workflows/vizro-qa-tests-trigger.yml (Line: 36, Col: 19): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.VIZRO_QA_INTEGRATION_TESTS_WORKFLOW .github/workflows/vizro-qa-tests-trigger.yml (Line: 38, Col: 19): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.VIZRO_QA_NOTEBOOKS_TESTS_WORKFLOW
- label: notebooks test
file: "${{ secrets.VIZRO_QA_NOTEBOOKS_TESTS_WORKFLOW }}"
steps:
- uses: actions/checkout@v4
- name: Tests trigger
run: |
export INPUT_OWNER=${{ secrets.VIZRO_QA_ORG }}
export INPUT_REPO=${{ secrets.VIZRO_QA_REPO }}
export INPUT_WORKFLOW_FILE_NAME=${{ matrix.label }}
export INPUT_GITHUB_TOKEN=${{ secrets.VIZRO_SVC_PAT }}
export INPUT_REF=${{ github.head_ref }}
tools/trigger-workflow-and-wait.sh