From 116a7af622749e16a1129a83ccf6c272fe29b588 Mon Sep 17 00:00:00 2001 From: Alex Walker Date: Tue, 14 Mar 2023 10:50:47 -0700 Subject: [PATCH 1/9] fix: run only on main, forks ok Signed-off-by: Alex Walker --- .github/workflows/nightly-tests.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index e9b6d5d77a..d0df76c859 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -3,10 +3,13 @@ name: Nightly Tests on: schedule: - cron: '0 0 * * *' - workflow_dispatch: + push: + branches: + - main jobs: tests: + if: github.event.ref == 'refs/heads/main' name: Tests strategy: fail-fast: false @@ -22,6 +25,7 @@ jobs: os: ${{ matrix.os }} tests-indy: + if: github.event.ref == 'refs/heads/main' name: Tests (Indy) strategy: fail-fast: false @@ -31,7 +35,6 @@ jobs: include: - os: "ubuntu-20.04" python-version: "3.6" - uses: ./.github/workflows/tests-indy.yml with: python-version: ${{ matrix.python-version }} From dbcdf6a003570f6a41453045513231d9261c10ae Mon Sep 17 00:00:00 2001 From: Alex Walker Date: Mon, 20 Mar 2023 11:45:35 -0700 Subject: [PATCH 2/9] fix: on schedule Signed-off-by: Alex Walker --- .github/workflows/nightly-tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index d0df76c859..e510dd4272 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -3,9 +3,6 @@ name: Nightly Tests on: schedule: - cron: '0 0 * * *' - push: - branches: - - main jobs: tests: From 55a074bbab0b08606863410d353e55b530e1ced6 Mon Sep 17 00:00:00 2001 From: Alex Walker Date: Tue, 28 Mar 2023 11:09:15 -0700 Subject: [PATCH 3/9] fix: run on hyperledger's only Signed-off-by: Alex Walker --- .github/workflows/nightly-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index e510dd4272..511600f722 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -6,7 +6,7 @@ on: jobs: tests: - if: github.event.ref == 'refs/heads/main' + if: github.event.ref == 'refs/heads/main' && github.repository == 'hyperledger/aries-cloudagent-python' name: Tests strategy: fail-fast: false @@ -22,7 +22,7 @@ jobs: os: ${{ matrix.os }} tests-indy: - if: github.event.ref == 'refs/heads/main' + if: github.event.ref == 'refs/heads/main' && github.repository == 'hyperledger/aries-cloudagent-python' name: Tests (Indy) strategy: fail-fast: false From 502ba2b5a577559e5e84e0a85449f50a2a755efb Mon Sep 17 00:00:00 2001 From: Alex Walker Date: Tue, 28 Mar 2023 11:35:11 -0700 Subject: [PATCH 4/9] feat: add workflow_dispatch parameter to run flows Signed-off-by: Alex Walker --- .github/workflows/nightly-tests.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index 511600f722..d75704ca80 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -3,10 +3,16 @@ name: Nightly Tests on: schedule: - cron: '0 0 * * *' + workflow_dispatch: + inputs: + run_flows: + description: '(Bool) Run nightly-tests.yml' + required: false + default: true jobs: tests: - if: github.event.ref == 'refs/heads/main' && github.repository == 'hyperledger/aries-cloudagent-python' + if: (github.event.ref == 'refs/heads/main' && github.repository == 'hyperledger/aries-cloudagent-python') || (github.event.inputs.run_flows) name: Tests strategy: fail-fast: false @@ -22,7 +28,7 @@ jobs: os: ${{ matrix.os }} tests-indy: - if: github.event.ref == 'refs/heads/main' && github.repository == 'hyperledger/aries-cloudagent-python' + if: (github.event.ref == 'refs/heads/main' && github.repository == 'hyperledger/aries-cloudagent-python') || (github.event.inputs.run_flows) name: Tests (Indy) strategy: fail-fast: false From ef2c6490fc4c9cbc6de4a3c32854181f6d108391 Mon Sep 17 00:00:00 2001 From: Alex Walker Date: Tue, 4 Apr 2023 13:15:43 -0700 Subject: [PATCH 5/9] fix: remove 'main' Signed-off-by: Alex Walker --- .github/workflows/nightly-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index d75704ca80..2aabbe90de 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -12,7 +12,7 @@ on: jobs: tests: - if: (github.event.ref == 'refs/heads/main' && github.repository == 'hyperledger/aries-cloudagent-python') || (github.event.inputs.run_flows) + if: github.repository == 'hyperledger/aries-cloudagent-python' || (github.event.inputs.run_flows) name: Tests strategy: fail-fast: false @@ -28,7 +28,7 @@ jobs: os: ${{ matrix.os }} tests-indy: - if: (github.event.ref == 'refs/heads/main' && github.repository == 'hyperledger/aries-cloudagent-python') || (github.event.inputs.run_flows) + if: github.repository == 'hyperledger/aries-cloudagent-python' || (github.event.inputs.run_flows) name: Tests (Indy) strategy: fail-fast: false From c7d23c8c7a1dae7c3430e3f1d3e3cd23be46c70d Mon Sep 17 00:00:00 2001 From: Alex Walker Date: Thu, 6 Apr 2023 08:05:30 -0700 Subject: [PATCH 6/9] fix: repo name variable formatting Signed-off-by: Alex Walker --- .github/workflows/nightly-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index 2aabbe90de..8157205ba5 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -12,7 +12,7 @@ on: jobs: tests: - if: github.repository == 'hyperledger/aries-cloudagent-python' || (github.event.inputs.run_flows) + if: ${{github.event.repository.full_name}} == 'hyperledger/aries-cloudagent-python' || (github.event.inputs.run_flows) name: Tests strategy: fail-fast: false @@ -28,7 +28,7 @@ jobs: os: ${{ matrix.os }} tests-indy: - if: github.repository == 'hyperledger/aries-cloudagent-python' || (github.event.inputs.run_flows) + if: ${{github.event.repository.full_name}} == 'hyperledger/aries-cloudagent-python' || (github.event.inputs.run_flows) name: Tests (Indy) strategy: fail-fast: false From b135f82f26c01f51360892419af4fd94313ab070 Mon Sep 17 00:00:00 2001 From: Alex Walker Date: Thu, 6 Apr 2023 17:38:47 +0200 Subject: [PATCH 7/9] Revert "fix: repo name variable formatting" This reverts commit 115a3a05b402f72765359a39d94771cc8659dfe7. Signed-off-by: Alex Walker --- .github/workflows/nightly-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index 8157205ba5..2aabbe90de 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -12,7 +12,7 @@ on: jobs: tests: - if: ${{github.event.repository.full_name}} == 'hyperledger/aries-cloudagent-python' || (github.event.inputs.run_flows) + if: github.repository == 'hyperledger/aries-cloudagent-python' || (github.event.inputs.run_flows) name: Tests strategy: fail-fast: false @@ -28,7 +28,7 @@ jobs: os: ${{ matrix.os }} tests-indy: - if: ${{github.event.repository.full_name}} == 'hyperledger/aries-cloudagent-python' || (github.event.inputs.run_flows) + if: github.repository == 'hyperledger/aries-cloudagent-python' || (github.event.inputs.run_flows) name: Tests (Indy) strategy: fail-fast: false From a9977d711962c1964a2bb1e94e6546d8b922c40f Mon Sep 17 00:00:00 2001 From: Alex Walker Date: Thu, 20 Apr 2023 11:25:56 -0700 Subject: [PATCH 8/9] feat: run if workflow triggered Signed-off-by: Alex Walker --- .github/workflows/nightly-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index 2aabbe90de..fce1b53969 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -12,7 +12,7 @@ on: jobs: tests: - if: github.repository == 'hyperledger/aries-cloudagent-python' || (github.event.inputs.run_flows) + if: github.repository == 'hyperledger/aries-cloudagent-python' || github.event_name == 'workflow_dispatch' name: Tests strategy: fail-fast: false @@ -28,7 +28,7 @@ jobs: os: ${{ matrix.os }} tests-indy: - if: github.repository == 'hyperledger/aries-cloudagent-python' || (github.event.inputs.run_flows) + if: github.repository == 'hyperledger/aries-cloudagent-python' || github.event_name == 'workflow_dispatch' name: Tests (Indy) strategy: fail-fast: false From b4d90a7c08af6cd4d978d476e09356ef6a2526f3 Mon Sep 17 00:00:00 2001 From: Alex Walker Date: Mon, 24 Apr 2023 08:49:35 -0700 Subject: [PATCH 9/9] fix: remove env variable run_flows Signed-off-by: Alex Walker --- .github/workflows/nightly-tests.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index fce1b53969..5c180f8fdd 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -4,11 +4,6 @@ on: schedule: - cron: '0 0 * * *' workflow_dispatch: - inputs: - run_flows: - description: '(Bool) Run nightly-tests.yml' - required: false - default: true jobs: tests: