Skip to content

updates

updates #47

Workflow file for this run

name: CI Parent Pipeline
on:
push:
branches: ["ci_test"]
pull_request:
branches: ["ci_test"]
jobs:
prepare:
name: Generate matrix from config
runs-on: ubuntu-latest
outputs:
matrix_json_for_unittest: ${{ steps.generate.outputs.matrix_json_for_unittest }}
job_types_with_jobs: ${{ steps.generate.outputs.job_types_with_jobs }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install converter dependency
run: pip install pyyaml
- name: Convert .ci/config.yaml to matrix JSON (by job type)
id: generate
run: python .ci/scripts/config_to_matrix.py --config .ci/config.yaml --write-github-outputs
- name: Show generated job types
run: |
echo "job_types_with_jobs=${{ steps.generate.outputs.job_types_with_jobs }}"
echo "matrix_json_for_unittest=${{ steps.generate.outputs.matrix_json_for_unittest }}"
run-child-unittest:
name: Execute unittest child pipeline
needs: prepare
if: contains(fromJSON(needs.prepare.outputs.job_types_with_jobs), 'unittest')
uses: ./.github/workflows/ci_child_for_unittest.yml
with:
matrix_json: ${{ needs.prepare.outputs.matrix_json_for_unittest }}