From c0cc3eb9769948bd529ea4ab8f604e1321aaf857 Mon Sep 17 00:00:00 2001 From: Justin Laughlin Date: Fri, 3 May 2024 18:45:19 -0700 Subject: [PATCH 1/9] add workflow for triggering pymfem CI --- .github/workflows/trigger-pymfem-ci.yml | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/trigger-pymfem-ci.yml diff --git a/.github/workflows/trigger-pymfem-ci.yml b/.github/workflows/trigger-pymfem-ci.yml new file mode 100644 index 00000000000..a73beddfe77 --- /dev/null +++ b/.github/workflows/trigger-pymfem-ci.yml @@ -0,0 +1,30 @@ +# Copyright (c) 2010-2024, Lawrence Livermore National Security, LLC. Produced +# at the Lawrence Livermore National Laboratory. All Rights reserved. See files +# LICENSE and NOTICE for details. LLNL-CODE-806117. +# +# This file is part of the MFEM library. For more information and source code +# availability visit https://mfem.org. +# +# MFEM is free software; you can redistribute it and/or modify it under the +# terms of the BSD-3 license. We welcome feedback and contributions, see file +# CONTRIBUTING.md for details. + +name: "Trigger PyMFEM CI" + +# For now, only trigger manually +on: + workflow_dispatch: + +jobs: + trigger-pymfem: + runs-on: ubuntu-latest + steps: + - name: Send POST request to trigger PyMFEM CI + run: | + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.PYMFEM_CI_TOKEN }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://github.com/repos/testing-org-permissions/target/actions/workflows/workflow.yml/dispatches \ + -d '{"ref":"main", "inputs":{"test_matrix":false}}' From 3a5d89a6fb3a116d2be3687d263c3a49486516be Mon Sep 17 00:00:00 2001 From: Justin Laughlin Date: Fri, 3 May 2024 20:19:16 -0700 Subject: [PATCH 2/9] need to add pull_request to triggers so it will show up as an action --- .github/workflows/trigger-pymfem-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/trigger-pymfem-ci.yml b/.github/workflows/trigger-pymfem-ci.yml index a73beddfe77..dda681434e3 100644 --- a/.github/workflows/trigger-pymfem-ci.yml +++ b/.github/workflows/trigger-pymfem-ci.yml @@ -14,6 +14,7 @@ name: "Trigger PyMFEM CI" # For now, only trigger manually on: workflow_dispatch: + pull_request: jobs: trigger-pymfem: From 1d939a207ac027b78e80fae0cb8e867831efac77 Mon Sep 17 00:00:00 2001 From: Justin Laughlin Date: Fri, 3 May 2024 20:27:45 -0700 Subject: [PATCH 3/9] change target repo to pymfem --- .github/workflows/trigger-pymfem-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/trigger-pymfem-ci.yml b/.github/workflows/trigger-pymfem-ci.yml index dda681434e3..aa900b29a3c 100644 --- a/.github/workflows/trigger-pymfem-ci.yml +++ b/.github/workflows/trigger-pymfem-ci.yml @@ -14,7 +14,6 @@ name: "Trigger PyMFEM CI" # For now, only trigger manually on: workflow_dispatch: - pull_request: jobs: trigger-pymfem: @@ -27,5 +26,5 @@ jobs: -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.PYMFEM_CI_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - https://github.com/repos/testing-org-permissions/target/actions/workflows/workflow.yml/dispatches \ + https://github.com/repos/mfem/pymfem/actions/workflows/build-and-test.yml/dispatches \ -d '{"ref":"main", "inputs":{"test_matrix":false}}' From 947310138eb9dc336b035729c8496220b9011ab9 Mon Sep 17 00:00:00 2001 From: Justin Laughlin Date: Fri, 3 May 2024 21:02:54 -0700 Subject: [PATCH 4/9] refresh action --- .github/workflows/trigger-pymfem-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/trigger-pymfem-ci.yml b/.github/workflows/trigger-pymfem-ci.yml index aa900b29a3c..e86d748b64c 100644 --- a/.github/workflows/trigger-pymfem-ci.yml +++ b/.github/workflows/trigger-pymfem-ci.yml @@ -14,6 +14,7 @@ name: "Trigger PyMFEM CI" # For now, only trigger manually on: workflow_dispatch: + pull_request: jobs: trigger-pymfem: From 78fff76695bae208b9e031c07dfc54e80f3fa8de Mon Sep 17 00:00:00 2001 From: Justin Laughlin Date: Fri, 3 May 2024 21:06:26 -0700 Subject: [PATCH 5/9] change ref to master, and remove inputs for now (until pymfem workflow is updated) --- .github/workflows/trigger-pymfem-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger-pymfem-ci.yml b/.github/workflows/trigger-pymfem-ci.yml index e86d748b64c..1dfbbbda521 100644 --- a/.github/workflows/trigger-pymfem-ci.yml +++ b/.github/workflows/trigger-pymfem-ci.yml @@ -28,4 +28,4 @@ jobs: -H "Authorization: Bearer ${{ secrets.PYMFEM_CI_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://github.com/repos/mfem/pymfem/actions/workflows/build-and-test.yml/dispatches \ - -d '{"ref":"main", "inputs":{"test_matrix":false}}' + -d '{"ref":"master"}' From a3ce8974f6b455be1b81dfbce8edb8e40706a8b1 Mon Sep 17 00:00:00 2001 From: Justin Laughlin Date: Tue, 7 May 2024 17:53:19 -0700 Subject: [PATCH 6/9] add input to workflow_dispatch --- .github/workflows/trigger-pymfem-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trigger-pymfem-ci.yml b/.github/workflows/trigger-pymfem-ci.yml index 1dfbbbda521..073e2e30a42 100644 --- a/.github/workflows/trigger-pymfem-ci.yml +++ b/.github/workflows/trigger-pymfem-ci.yml @@ -14,7 +14,11 @@ name: "Trigger PyMFEM CI" # For now, only trigger manually on: workflow_dispatch: - pull_request: + inputs: + test_matrix: + description: 'Test all options in the matrix. If set to false, will only trigger the CI for the default options.' + default: false + type: boolean jobs: trigger-pymfem: @@ -28,4 +32,4 @@ jobs: -H "Authorization: Bearer ${{ secrets.PYMFEM_CI_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://github.com/repos/mfem/pymfem/actions/workflows/build-and-test.yml/dispatches \ - -d '{"ref":"master"}' + -d '{"ref":"master", "inputs":{"test_matrix":${{ inputs.test_matrix }} }}' From badd444b9f898e6beb01952c9d04aa112461a2c9 Mon Sep 17 00:00:00 2001 From: Justin Laughlin Date: Tue, 7 May 2024 17:55:33 -0700 Subject: [PATCH 7/9] add pull_request to triggers so it will show up --- .github/workflows/trigger-pymfem-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/trigger-pymfem-ci.yml b/.github/workflows/trigger-pymfem-ci.yml index 073e2e30a42..f1764f0c672 100644 --- a/.github/workflows/trigger-pymfem-ci.yml +++ b/.github/workflows/trigger-pymfem-ci.yml @@ -19,6 +19,7 @@ on: description: 'Test all options in the matrix. If set to false, will only trigger the CI for the default options.' default: false type: boolean + pull_request: jobs: trigger-pymfem: From 45f5d4bd72b65fa5460fb355b8e44154456b7021 Mon Sep 17 00:00:00 2001 From: Justin Laughlin Date: Thu, 8 Aug 2024 15:23:21 -0700 Subject: [PATCH 8/9] Update trigger-pymfem-ci.yml update target for POST, change input, and add trigger on push to master --- .github/workflows/trigger-pymfem-ci.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/trigger-pymfem-ci.yml b/.github/workflows/trigger-pymfem-ci.yml index f1764f0c672..5a755d59b09 100644 --- a/.github/workflows/trigger-pymfem-ci.yml +++ b/.github/workflows/trigger-pymfem-ci.yml @@ -11,15 +11,11 @@ name: "Trigger PyMFEM CI" -# For now, only trigger manually on: - workflow_dispatch: - inputs: - test_matrix: - description: 'Test all options in the matrix. If set to false, will only trigger the CI for the default options.' - default: false - type: boolean pull_request: + push: + branches: + - master jobs: trigger-pymfem: @@ -32,5 +28,5 @@ jobs: -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.PYMFEM_CI_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - https://github.com/repos/mfem/pymfem/actions/workflows/build-and-test.yml/dispatches \ - -d '{"ref":"master", "inputs":{"test_matrix":${{ inputs.test_matrix }} }}' + https://github.com/repos/mfem/pymfem/actions/workflows/build-and-test-dispatch.yml/dispatches \ + -d '{"ref":"master", "inputs":{"test_options":"fast"}}' From 16fc316ee6cea4d596c96987c04ae04f9c6cd8e4 Mon Sep 17 00:00:00 2001 From: Justin Laughlin Date: Thu, 8 Aug 2024 15:44:23 -0700 Subject: [PATCH 9/9] Update trigger-pymfem-ci.yml - remove pull-request from triggers --- .github/workflows/trigger-pymfem-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/trigger-pymfem-ci.yml b/.github/workflows/trigger-pymfem-ci.yml index 5a755d59b09..73f6e085523 100644 --- a/.github/workflows/trigger-pymfem-ci.yml +++ b/.github/workflows/trigger-pymfem-ci.yml @@ -12,7 +12,6 @@ name: "Trigger PyMFEM CI" on: - pull_request: push: branches: - master