From a4392b744e709d8ef687b8505a04674f51750bbc Mon Sep 17 00:00:00 2001 From: SotaTek-DuyLe Date: Fri, 28 Jun 2024 10:43:52 +0700 Subject: [PATCH] fix: nightly required --- .github/workflows/ci.yml | 5 +++-- .github/workflows/nightly.yml | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8789225cf..b316f5057 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,10 @@ on: workflow_call: inputs: nightly: - description: 'Set to true to run nightly targets' + description: When set to true, the workflow will run with nightly reports + required: false + type: boolean default: false - type: string aws_ecr_registry: description: | The AWS ECR registry that will be used to publish images diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 78f6f8a67..f4c04142a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -1,7 +1,7 @@ on: schedule: - - cron: '0 0 * * 0' + - cron: '/10 * * * *' workflow_call: inputs: earthfile: @@ -130,28 +130,28 @@ jobs: run: echo "nightly=${{ github.event.inputs.nightly }}" >> $GITHUB_ENV - name: Report tests if nightly return false - if: env.nightly == 'false' + if: env.nightly == false run: pytest --junitxml=report.xml - name: Run nightly tests - if: env.nightly == 'true' + if: env.nightly == true run: pytest --tag=nightly --junitxml=nightly-report.xml - name: Generate coverage report - if: env.nightly == 'true' + if: env.nightly == true run: | coverage run -m pytest --tag=nightly coverage xml -o nightly-coverage.xml - name: Upload Test Report - if: env.nightly == 'true' + if: env.nightly == true uses: actions/upload-artifact@v3 with: name: nightly-test-report path: nightly-report.xml - name: Upload Coverage Report - if: env.nightly == 'true' + if: env.nightly == true uses: actions/upload-artifact@v3 with: name: nightly-coverage-report