[UIL] Add NPU device support for FlagCX Ascend communicator (#536) #2306
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |