fix: update schema and behaviours #137
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: CI | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| types: [synchronize, labeled, unlabeled] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| pull-requests: read | |
| contents: read | |
| id-token: write | |
| jobs: | |
| validate-files-and-commits: | |
| name: Lint Files & commits | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'ok-to-test') && | |
| !contains(github.event.pull_request.labels.*.name, 'skip-lint') | |
| uses: ./.github/workflows/validate-files-and-commits.yml | |
| secrets: inherit | |
| build-agent-pkg: | |
| #needs: [validate-files-and-commits, lint] | |
| name: Build python pkg | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'ok-to-test') && | |
| !contains(github.event.pull_request.labels.*.name, 'skip-build-pkg') | |
| uses: ./.github/workflows/build-mlsysops-pkg.yml | |
| secrets: inherit | |
| build-cli-pkg: | |
| #needs: [validate-files-and-commits, lint] | |
| name: Build mlsysops CLI pkg | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'ok-to-test') && | |
| !contains(github.event.pull_request.labels.*.name, 'skip-build-pkg') | |
| uses: ./.github/workflows/build-cli-pkg.yml | |
| secrets: inherit | |
| build-agent-containers: | |
| needs: [build-agent-pkg] | |
| name: Build containers | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'ok-to-test') && | |
| !contains(github.event.pull_request.labels.*.name, 'skip-build-containers') | |
| strategy: | |
| matrix: | |
| agent: ["node", "cluster", "continuum"] | |
| fail-fast: false | |
| uses: ./.github/workflows/build-containers.yml | |
| secrets: inherit | |
| with: | |
| agent: ${{ matrix.agent }} | |
| build-northbound-api: | |
| needs: [build-agent-pkg] | |
| name: Build Northbound API | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'ok-to-test') && | |
| !contains(github.event.pull_request.labels.*.name, 'skip-build-containers') | |
| uses: ./.github/workflows/build-northbound-api.yml | |
| secrets: inherit | |
| build-test-app: | |
| #needs: [build-agent-pkg] | |
| name: Build testing application containers | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'ok-to-test') && | |
| !contains(github.event.pull_request.labels.*.name, 'skip-build-containers') | |
| uses: ./.github/workflows/build-test-application.yml | |
| secrets: inherit | |
| # lint: | |
| # name: Lint code | |
| # if: | | |
| # contains(github.event.pull_request.labels.*.name, 'ok-to-test') && | |
| # !contains(github.event.pull_request.labels.*.name, 'skip-lint') | |
| # uses: ./.github/workflows/lint.yml | |
| # secrets: inherit | |
| # build: | |
| # #needs: [validate-files-and-commits, lint] | |
| # name: Build | |
| # if: | | |
| # contains(github.event.pull_request.labels.*.name, 'ok-to-test') && | |
| # !contains(github.event.pull_request.labels.*.name, 'skip-build') | |
| # uses: ./.github/workflows/build.yml | |
| # secrets: inherit | |
| # | |
| # unit_test: | |
| # #needs: [validate-files-and-commits, lint] | |
| # name: Unit tests | |
| # if: | | |
| # contains(github.event.pull_request.labels.*.name, 'ok-to-test') && | |
| # !contains(github.event.pull_request.labels.*.name, 'skip-build') | |
| # uses: ./.github/workflows/unit_test.yml | |
| # secrets: inherit | |
| # | |
| # #FIXME: run for arm64 | |
| # vm_test: | |
| # needs: [build,unit_test] | |
| # name: E2E test | |
| # if: | | |
| # contains(github.event.pull_request.labels.*.name, 'ok-to-test') && | |
| # !contains(github.event.pull_request.labels.*.name, 'skip-build') | |
| # uses: ./.github/workflows/vm_test.yml | |
| # secrets: inherit | |
| # |