Skip to content

[UIL] Include flagcx_wrapper.py in pip package (#537) #2305

[UIL] Include flagcx_wrapper.py in pip package (#537)

[UIL] Include flagcx_wrapper.py in pip package (#537) #2305

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
workflow_dispatch:
inputs:
platform:
description: "Platform config name, all, or comma-separated names"
required: true
type: string
default: all
permissions:
contents: read
concurrency:
group: unit-tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
load_platforms:
name: Load platform configurations
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.config.outputs.matrix }}
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref }}
persist-credentials: false
- name: Build platform matrix
id: config
env:
FLAGCX_CI_PLATFORM: ${{ github.event.inputs.platform || 'all' }}
run: ruby .github/scripts/ci/load_platform_matrix.rb .github/configs "$FLAGCX_CI_PLATFORM"
unit_tests:
name: ${{ matrix.display_name }} unit tests
needs: load_platforms
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.load_platforms.outputs.matrix) }}
uses: ./.github/workflows/unit_tests_platform_common.yml
with:
platform: ${{ matrix.platform }}