diff --git a/.github/workflows/cortex-js-openai-coverage.yml b/.github/workflows/cortex-js-openai-coverage.yml index 0d18e615a..58c1817ad 100644 --- a/.github/workflows/cortex-js-openai-coverage.yml +++ b/.github/workflows/cortex-js-openai-coverage.yml @@ -1,7 +1,7 @@ name: Test - OpenAI API Coverage - Nightly / Manual on: schedule: - - cron: '0 20 * * 1,2,3' # At 8 PM UTC on Monday, Tuesday, and Wednesday which is 3 AM UTC+7 Tuesday, Wednesday, and Thursday + - cron: '0 20 * * 1,2,3,4,5' # At 8 PM UTC on Monday, Tuesday, and Wednesday which is 3 AM UTC+7 Tuesday, Wednesday, and Thursday workflow_dispatch: inputs: endpoints: @@ -18,15 +18,16 @@ env: jobs: openai-python-tests: - runs-on: [self-hosted, Linux, ubuntu-desktop] + runs-on: [self-hosted, Linux] steps: - name: Getting the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + ref: dev - name: Installing node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20 @@ -45,7 +46,7 @@ jobs: - run: | node cortex-js/dist/src/command.js serve --host 127.0.0.1 --port 4010 > cortex.log & cortex_pid=$! - sleep 1 + sleep 3 wget -O api.json http://127.0.0.1:4010/api-json kill $cortex_pid