diff --git a/.github/workflows/pkgci.yml b/.github/workflows/pkgci.yml index a0d3b84d6fba..63ef4274a45d 100644 --- a/.github/workflows/pkgci.yml +++ b/.github/workflows/pkgci.yml @@ -37,11 +37,11 @@ jobs: with: package_version: 0.dev1 - core_tests: - name: Core Tests - needs: [setup, build_packages] - if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'core_tests') - uses: ./.github/workflows/pkgci_core_tests.yml + # core_tests: + # name: Core Tests + # needs: [setup, build_packages] + # if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'core_tests') + # uses: ./.github/workflows/pkgci_core_tests.yml # unit_test: # name: Unit Test diff --git a/.github/workflows/pkgci_core_tests.yml b/.github/workflows/pkgci_core_tests.yml index 557d9149db2e..19d5eee29fac 100644 --- a/.github/workflows/pkgci_core_tests.yml +++ b/.github/workflows/pkgci_core_tests.yml @@ -6,16 +6,20 @@ name: PkgCI core tests on: - workflow_call: - inputs: - artifact_run_id: - type: string - default: "" - workflow_dispatch: - inputs: - artifact_run_id: - type: string - default: "" + # workflow_call: + # inputs: + # artifact_run_id: + # type: string + # default: "" + workflow_run: + workflows: [PkgCI] + types: [completed] + + # workflow_dispatch: + # inputs: + # artifact_run_id: + # type: string + # default: "" concurrency: # A PR number if a pull request and otherwise the commit hash. This cancels @@ -28,6 +32,7 @@ concurrency: jobs: core_tests: runs-on: ubuntu-20.04 + if: ${{ github.event.workflow_run.conclusion == 'success' }} env: PACKAGE_DOWNLOAD_DIR: ${{ github.workspace }}/.packages BUILD_DIR: build-tests @@ -51,11 +56,12 @@ jobs: with: name: linux_x86_64_release_packages path: ${{ env.PACKAGE_DOWNLOAD_DIR }} + run-id: ${{ github.event.workflow_run.id }} - name: Setup base venv run: | ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \ --artifact-path=${PACKAGE_DOWNLOAD_DIR} \ - --fetch-gh-workflow=${{ inputs.artifact_run_id }} + --fetch-gh-workflow=${{ github.event.workflow_run.id }} - name: "Installing IREE nightly release Python packages" run: | source ${VENV_DIR}/bin/activate