From 16e2a94057e1c94791e3d9fbd6fcdc9d72a229e5 Mon Sep 17 00:00:00 2001 From: Nan Wang Date: Sat, 3 Dec 2022 23:03:40 +0800 Subject: [PATCH 1/4] ci: fix the wrong error msg Signed-off-by: Nan Wang --- .github/workflows/publish-docarray-org.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-docarray-org.yml b/.github/workflows/publish-docarray-org.yml index 23250e7b188..39eaed4a154 100644 --- a/.github/workflows/publish-docarray-org.yml +++ b/.github/workflows/publish-docarray-org.yml @@ -6,10 +6,19 @@ on: release_token: description: 'Your release token' required: true + ref: + description: 'The branch, tag or SHA to checkout' + required: false + default: '' workflow_call: + inputs: + ref: + description: 'The branch, tag or SHA to checkout' + required: false + default: '' secrets: JINA_DEV_BOT: - required: True + required: true # uncomment this line for testing in PR # push: @@ -44,6 +53,7 @@ jobs: with: fetch-depth: 1 path: docarray + ref: inputs.ref - uses: actions/checkout@v3 with: fetch-depth: 1 @@ -56,5 +66,7 @@ jobs: cp ${GITHUB_WORKSPACE}/docarray/README.md . git config --local user.email "Jina Dev Bot" git config --local user.name "dev-bot@jina.ai" - git add README.md && git commit -s -m "chore(docs): sync up README from docarray" - git push + if [[ `git status --porcelain` ]]; then + git add README.md && git commit -s -m "chore(docs): sync up README from docarray" + git push + fi \ No newline at end of file From 45ce12f359f519f993eef0388c913f567a72680b Mon Sep 17 00:00:00 2001 From: Nan Wang Date: Sat, 3 Dec 2022 23:03:59 +0800 Subject: [PATCH 2/4] ci: add debugging msg Signed-off-by: Nan Wang --- .github/workflows/cd.yml | 276 +++++++++++++++++++-------------------- 1 file changed, 138 insertions(+), 138 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index ccd020109e1..fb76a12a01e 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -2,147 +2,147 @@ name: CD on: push: - branches: - - main +# branches: +# - main jobs: - prep-testbed: - if: | - !startsWith(github.event.head_commit.message, 'chore') && - !startsWith(github.event.head_commit.message, 'build: hotfix') && - !endsWith(github.event.head_commit.message, 'reformatted by jina-dev-bot') - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2.5.0 - - id: set-matrix - run: | - sudo apt-get install jq - export value=$(bash scripts/get-all-test-paths.sh) - echo "matrix=$value" >> $GITHUB_OUTPUT - export value=$(bash scripts/get-all-oldproto-test-paths.sh) - echo "matrix-oldproto=$value" >> $GITHUB_OUTPUT - outputs: - matrix: ${{ steps.set-matrix.outputs.matrix }} - matrix-oldproto: ${{ steps.set-matrix.outputs.matrix-oldproto }} - - docarray-test: - needs: prep-testbed - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: [3.7] - test-path: ${{fromJson(needs.prep-testbed.outputs.matrix)}} - steps: - - uses: actions/checkout@v2.5.0 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Prepare enviroment - run: | - python -m pip install --upgrade pip - python -m pip install wheel - # pip does not properly resolve dependency versions with syntax pip install --no-cache-dir ".[test,full]" - pip install --no-cache-dir ".[test]" - pip install --no-cache-dir ".[qdrant]" - pip install --no-cache-dir ".[annlite]" - pip install --no-cache-dir ".[weaviate]" - pip install --no-cache-dir ".[elasticsearch]" - pip install --no-cache-dir ".[redis]" - pip install --no-cache-dir ".[full]" - sudo apt-get install libsndfile1 - - name: Test - id: test - run: | - pytest --suppress-no-test-exit-code --cov=docarray --cov-report=xml \ - -v -s -m "not gpu" ${{ matrix.test-path }} - echo "codecov_flag=docarray" >> $GITHUB_OUTPUT - timeout-minutes: 60 - env: - JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}" - - name: Check codecov file - id: check_files - uses: andstor/file-existence-action@v1 - with: - files: "coverage.xml" - - name: Upload coverage from test to Codecov - uses: codecov/codecov-action@v3.1.1 - if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.7' - with: - file: coverage.xml - flags: ${{ steps.test.outputs.codecov_flag }} - fail_ci_if_error: false - token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos - - docarray-oldproto-test: - needs: prep-testbed - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: [3.7] - test-path: ${{fromJson(needs.prep-testbed.outputs.matrix-oldproto)}} - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Prepare enviroment - run: | - python -m pip install --upgrade pip - python -m pip install wheel - # pip does not properly resolve dependency versions with syntax pip install --no-cache-dir ".[test,full]" - pip install --no-cache-dir ".[test]" - pip install --no-cache-dir ".[qdrant]" - pip install --no-cache-dir ".[annlite]" - pip install --no-cache-dir ".[weaviate]" - pip install --no-cache-dir ".[elasticsearch]" - pip install --no-cache-dir ".[redis]" - pip install --no-cache-dir ".[full]" - pip install --no-cache-dir "protobuf<3.20.0" - sudo apt-get install libsndfile1 - - name: Test - id: test - run: | - pytest --suppress-no-test-exit-code --cov=docarray --cov-report=xml \ - -v -s -m "not gpu" ${{ matrix.test-path }} - echo "::set-output name=codecov_flag::docarray" - timeout-minutes: 60 - env: - JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}" - - name: Check codecov file - id: check_files - uses: andstor/file-existence-action@v1 - with: - files: "coverage.xml" - - name: Upload coverage from test to Codecov - uses: codecov/codecov-action@v2 - if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.7' - with: - file: coverage.xml - flags: ${{ steps.test.outputs.codecov_flag }} - fail_ci_if_error: false - token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos - - prerelease: - needs: [docarray-test, docarray-oldproto-test] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2.5.0 - with: - fetch-depth: 100 - - name: Pre-release (.devN) - run: | - git fetch --depth=1 origin +refs/tags/*:refs/tags/* - pip install twine wheel - ./scripts/release.sh - env: - TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - JINA_SLACK_WEBHOOK: ${{ secrets.JINA_SLACK_WEBHOOK }} +# prep-testbed: +# if: | +# !startsWith(github.event.head_commit.message, 'chore') && +# !startsWith(github.event.head_commit.message, 'build: hotfix') && +# !endsWith(github.event.head_commit.message, 'reformatted by jina-dev-bot') +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2.5.0 +# - id: set-matrix +# run: | +# sudo apt-get install jq +# export value=$(bash scripts/get-all-test-paths.sh) +# echo "matrix=$value" >> $GITHUB_OUTPUT +# export value=$(bash scripts/get-all-oldproto-test-paths.sh) +# echo "matrix-oldproto=$value" >> $GITHUB_OUTPUT +# outputs: +# matrix: ${{ steps.set-matrix.outputs.matrix }} +# matrix-oldproto: ${{ steps.set-matrix.outputs.matrix-oldproto }} +# +# docarray-test: +# needs: prep-testbed +# runs-on: ubuntu-latest +# strategy: +# fail-fast: false +# matrix: +# python-version: [3.7] +# test-path: ${{fromJson(needs.prep-testbed.outputs.matrix)}} +# steps: +# - uses: actions/checkout@v2.5.0 +# - name: Set up Python ${{ matrix.python-version }} +# uses: actions/setup-python@v4 +# with: +# python-version: ${{ matrix.python-version }} +# - name: Prepare enviroment +# run: | +# python -m pip install --upgrade pip +# python -m pip install wheel +# # pip does not properly resolve dependency versions with syntax pip install --no-cache-dir ".[test,full]" +# pip install --no-cache-dir ".[test]" +# pip install --no-cache-dir ".[qdrant]" +# pip install --no-cache-dir ".[annlite]" +# pip install --no-cache-dir ".[weaviate]" +# pip install --no-cache-dir ".[elasticsearch]" +# pip install --no-cache-dir ".[redis]" +# pip install --no-cache-dir ".[full]" +# sudo apt-get install libsndfile1 +# - name: Test +# id: test +# run: | +# pytest --suppress-no-test-exit-code --cov=docarray --cov-report=xml \ +# -v -s -m "not gpu" ${{ matrix.test-path }} +# echo "codecov_flag=docarray" >> $GITHUB_OUTPUT +# timeout-minutes: 60 +# env: +# JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}" +# - name: Check codecov file +# id: check_files +# uses: andstor/file-existence-action@v1 +# with: +# files: "coverage.xml" +# - name: Upload coverage from test to Codecov +# uses: codecov/codecov-action@v3.1.1 +# if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.7' +# with: +# file: coverage.xml +# flags: ${{ steps.test.outputs.codecov_flag }} +# fail_ci_if_error: false +# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos +# +# docarray-oldproto-test: +# needs: prep-testbed +# runs-on: ubuntu-latest +# strategy: +# fail-fast: false +# matrix: +# python-version: [3.7] +# test-path: ${{fromJson(needs.prep-testbed.outputs.matrix-oldproto)}} +# steps: +# - uses: actions/checkout@v2 +# - name: Set up Python ${{ matrix.python-version }} +# uses: actions/setup-python@v2 +# with: +# python-version: ${{ matrix.python-version }} +# - name: Prepare enviroment +# run: | +# python -m pip install --upgrade pip +# python -m pip install wheel +# # pip does not properly resolve dependency versions with syntax pip install --no-cache-dir ".[test,full]" +# pip install --no-cache-dir ".[test]" +# pip install --no-cache-dir ".[qdrant]" +# pip install --no-cache-dir ".[annlite]" +# pip install --no-cache-dir ".[weaviate]" +# pip install --no-cache-dir ".[elasticsearch]" +# pip install --no-cache-dir ".[redis]" +# pip install --no-cache-dir ".[full]" +# pip install --no-cache-dir "protobuf<3.20.0" +# sudo apt-get install libsndfile1 +# - name: Test +# id: test +# run: | +# pytest --suppress-no-test-exit-code --cov=docarray --cov-report=xml \ +# -v -s -m "not gpu" ${{ matrix.test-path }} +# echo "::set-output name=codecov_flag::docarray" +# timeout-minutes: 60 +# env: +# JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}" +# - name: Check codecov file +# id: check_files +# uses: andstor/file-existence-action@v1 +# with: +# files: "coverage.xml" +# - name: Upload coverage from test to Codecov +# uses: codecov/codecov-action@v2 +# if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.7' +# with: +# file: coverage.xml +# flags: ${{ steps.test.outputs.codecov_flag }} +# fail_ci_if_error: false +# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos +# +# prerelease: +# needs: [docarray-test, docarray-oldproto-test] +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2.5.0 +# with: +# fetch-depth: 100 +# - name: Pre-release (.devN) +# run: | +# git fetch --depth=1 origin +refs/tags/*:refs/tags/* +# pip install twine wheel +# ./scripts/release.sh +# env: +# TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} +# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} +# JINA_SLACK_WEBHOOK: ${{ secrets.JINA_SLACK_WEBHOOK }} check-readme-modification: runs-on: ubuntu-latest From e2f065411b8e8e15f960e2c11ca24dffe3d0f442 Mon Sep 17 00:00:00 2001 From: Nan Wang Date: Sat, 3 Dec 2022 23:12:48 +0800 Subject: [PATCH 3/4] ci: fix the error Signed-off-by: Nan Wang --- .github/workflows/publish-docarray-org.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/publish-docarray-org.yml b/.github/workflows/publish-docarray-org.yml index 39eaed4a154..7cab8afe911 100644 --- a/.github/workflows/publish-docarray-org.yml +++ b/.github/workflows/publish-docarray-org.yml @@ -6,16 +6,7 @@ on: release_token: description: 'Your release token' required: true - ref: - description: 'The branch, tag or SHA to checkout' - required: false - default: '' workflow_call: - inputs: - ref: - description: 'The branch, tag or SHA to checkout' - required: false - default: '' secrets: JINA_DEV_BOT: required: true @@ -53,7 +44,6 @@ jobs: with: fetch-depth: 1 path: docarray - ref: inputs.ref - uses: actions/checkout@v3 with: fetch-depth: 1 From a86a5f0c41601b01a143643f71e4165d208bf88e Mon Sep 17 00:00:00 2001 From: Nan Wang Date: Mon, 5 Dec 2022 14:48:21 +0800 Subject: [PATCH 4/4] ci: undo debugging message Signed-off-by: Nan Wang --- .github/workflows/cd.yml | 276 +++++++++++++++++++-------------------- 1 file changed, 138 insertions(+), 138 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index fb76a12a01e..ccd020109e1 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -2,147 +2,147 @@ name: CD on: push: -# branches: -# - main + branches: + - main jobs: -# prep-testbed: -# if: | -# !startsWith(github.event.head_commit.message, 'chore') && -# !startsWith(github.event.head_commit.message, 'build: hotfix') && -# !endsWith(github.event.head_commit.message, 'reformatted by jina-dev-bot') -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2.5.0 -# - id: set-matrix -# run: | -# sudo apt-get install jq -# export value=$(bash scripts/get-all-test-paths.sh) -# echo "matrix=$value" >> $GITHUB_OUTPUT -# export value=$(bash scripts/get-all-oldproto-test-paths.sh) -# echo "matrix-oldproto=$value" >> $GITHUB_OUTPUT -# outputs: -# matrix: ${{ steps.set-matrix.outputs.matrix }} -# matrix-oldproto: ${{ steps.set-matrix.outputs.matrix-oldproto }} -# -# docarray-test: -# needs: prep-testbed -# runs-on: ubuntu-latest -# strategy: -# fail-fast: false -# matrix: -# python-version: [3.7] -# test-path: ${{fromJson(needs.prep-testbed.outputs.matrix)}} -# steps: -# - uses: actions/checkout@v2.5.0 -# - name: Set up Python ${{ matrix.python-version }} -# uses: actions/setup-python@v4 -# with: -# python-version: ${{ matrix.python-version }} -# - name: Prepare enviroment -# run: | -# python -m pip install --upgrade pip -# python -m pip install wheel -# # pip does not properly resolve dependency versions with syntax pip install --no-cache-dir ".[test,full]" -# pip install --no-cache-dir ".[test]" -# pip install --no-cache-dir ".[qdrant]" -# pip install --no-cache-dir ".[annlite]" -# pip install --no-cache-dir ".[weaviate]" -# pip install --no-cache-dir ".[elasticsearch]" -# pip install --no-cache-dir ".[redis]" -# pip install --no-cache-dir ".[full]" -# sudo apt-get install libsndfile1 -# - name: Test -# id: test -# run: | -# pytest --suppress-no-test-exit-code --cov=docarray --cov-report=xml \ -# -v -s -m "not gpu" ${{ matrix.test-path }} -# echo "codecov_flag=docarray" >> $GITHUB_OUTPUT -# timeout-minutes: 60 -# env: -# JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}" -# - name: Check codecov file -# id: check_files -# uses: andstor/file-existence-action@v1 -# with: -# files: "coverage.xml" -# - name: Upload coverage from test to Codecov -# uses: codecov/codecov-action@v3.1.1 -# if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.7' -# with: -# file: coverage.xml -# flags: ${{ steps.test.outputs.codecov_flag }} -# fail_ci_if_error: false -# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos -# -# docarray-oldproto-test: -# needs: prep-testbed -# runs-on: ubuntu-latest -# strategy: -# fail-fast: false -# matrix: -# python-version: [3.7] -# test-path: ${{fromJson(needs.prep-testbed.outputs.matrix-oldproto)}} -# steps: -# - uses: actions/checkout@v2 -# - name: Set up Python ${{ matrix.python-version }} -# uses: actions/setup-python@v2 -# with: -# python-version: ${{ matrix.python-version }} -# - name: Prepare enviroment -# run: | -# python -m pip install --upgrade pip -# python -m pip install wheel -# # pip does not properly resolve dependency versions with syntax pip install --no-cache-dir ".[test,full]" -# pip install --no-cache-dir ".[test]" -# pip install --no-cache-dir ".[qdrant]" -# pip install --no-cache-dir ".[annlite]" -# pip install --no-cache-dir ".[weaviate]" -# pip install --no-cache-dir ".[elasticsearch]" -# pip install --no-cache-dir ".[redis]" -# pip install --no-cache-dir ".[full]" -# pip install --no-cache-dir "protobuf<3.20.0" -# sudo apt-get install libsndfile1 -# - name: Test -# id: test -# run: | -# pytest --suppress-no-test-exit-code --cov=docarray --cov-report=xml \ -# -v -s -m "not gpu" ${{ matrix.test-path }} -# echo "::set-output name=codecov_flag::docarray" -# timeout-minutes: 60 -# env: -# JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}" -# - name: Check codecov file -# id: check_files -# uses: andstor/file-existence-action@v1 -# with: -# files: "coverage.xml" -# - name: Upload coverage from test to Codecov -# uses: codecov/codecov-action@v2 -# if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.7' -# with: -# file: coverage.xml -# flags: ${{ steps.test.outputs.codecov_flag }} -# fail_ci_if_error: false -# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos -# -# prerelease: -# needs: [docarray-test, docarray-oldproto-test] -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2.5.0 -# with: -# fetch-depth: 100 -# - name: Pre-release (.devN) -# run: | -# git fetch --depth=1 origin +refs/tags/*:refs/tags/* -# pip install twine wheel -# ./scripts/release.sh -# env: -# TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} -# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} -# JINA_SLACK_WEBHOOK: ${{ secrets.JINA_SLACK_WEBHOOK }} + prep-testbed: + if: | + !startsWith(github.event.head_commit.message, 'chore') && + !startsWith(github.event.head_commit.message, 'build: hotfix') && + !endsWith(github.event.head_commit.message, 'reformatted by jina-dev-bot') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.5.0 + - id: set-matrix + run: | + sudo apt-get install jq + export value=$(bash scripts/get-all-test-paths.sh) + echo "matrix=$value" >> $GITHUB_OUTPUT + export value=$(bash scripts/get-all-oldproto-test-paths.sh) + echo "matrix-oldproto=$value" >> $GITHUB_OUTPUT + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }} + matrix-oldproto: ${{ steps.set-matrix.outputs.matrix-oldproto }} + + docarray-test: + needs: prep-testbed + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [3.7] + test-path: ${{fromJson(needs.prep-testbed.outputs.matrix)}} + steps: + - uses: actions/checkout@v2.5.0 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Prepare enviroment + run: | + python -m pip install --upgrade pip + python -m pip install wheel + # pip does not properly resolve dependency versions with syntax pip install --no-cache-dir ".[test,full]" + pip install --no-cache-dir ".[test]" + pip install --no-cache-dir ".[qdrant]" + pip install --no-cache-dir ".[annlite]" + pip install --no-cache-dir ".[weaviate]" + pip install --no-cache-dir ".[elasticsearch]" + pip install --no-cache-dir ".[redis]" + pip install --no-cache-dir ".[full]" + sudo apt-get install libsndfile1 + - name: Test + id: test + run: | + pytest --suppress-no-test-exit-code --cov=docarray --cov-report=xml \ + -v -s -m "not gpu" ${{ matrix.test-path }} + echo "codecov_flag=docarray" >> $GITHUB_OUTPUT + timeout-minutes: 60 + env: + JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}" + - name: Check codecov file + id: check_files + uses: andstor/file-existence-action@v1 + with: + files: "coverage.xml" + - name: Upload coverage from test to Codecov + uses: codecov/codecov-action@v3.1.1 + if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.7' + with: + file: coverage.xml + flags: ${{ steps.test.outputs.codecov_flag }} + fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos + + docarray-oldproto-test: + needs: prep-testbed + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [3.7] + test-path: ${{fromJson(needs.prep-testbed.outputs.matrix-oldproto)}} + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Prepare enviroment + run: | + python -m pip install --upgrade pip + python -m pip install wheel + # pip does not properly resolve dependency versions with syntax pip install --no-cache-dir ".[test,full]" + pip install --no-cache-dir ".[test]" + pip install --no-cache-dir ".[qdrant]" + pip install --no-cache-dir ".[annlite]" + pip install --no-cache-dir ".[weaviate]" + pip install --no-cache-dir ".[elasticsearch]" + pip install --no-cache-dir ".[redis]" + pip install --no-cache-dir ".[full]" + pip install --no-cache-dir "protobuf<3.20.0" + sudo apt-get install libsndfile1 + - name: Test + id: test + run: | + pytest --suppress-no-test-exit-code --cov=docarray --cov-report=xml \ + -v -s -m "not gpu" ${{ matrix.test-path }} + echo "::set-output name=codecov_flag::docarray" + timeout-minutes: 60 + env: + JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}" + - name: Check codecov file + id: check_files + uses: andstor/file-existence-action@v1 + with: + files: "coverage.xml" + - name: Upload coverage from test to Codecov + uses: codecov/codecov-action@v2 + if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.7' + with: + file: coverage.xml + flags: ${{ steps.test.outputs.codecov_flag }} + fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos + + prerelease: + needs: [docarray-test, docarray-oldproto-test] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.5.0 + with: + fetch-depth: 100 + - name: Pre-release (.devN) + run: | + git fetch --depth=1 origin +refs/tags/*:refs/tags/* + pip install twine wheel + ./scripts/release.sh + env: + TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + JINA_SLACK_WEBHOOK: ${{ secrets.JINA_SLACK_WEBHOOK }} check-readme-modification: runs-on: ubuntu-latest