Skip to content

Commit

Permalink
chore: add install ecosystem latest version test to ci (#5439)
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Jaghouar <[email protected]>
  • Loading branch information
samsja authored Nov 29, 2022
1 parent e143ea3 commit 0e34e4e
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
32 changes: 31 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ jobs:
matrix:
core: ['', 'true']
perf: ['', 'true']
exclude:
exclude:
- core: 'true'
perf: 'true'
steps:
Expand All @@ -421,6 +421,36 @@ jobs:
- name: Test import all
run: python -c 'from jina import *'

install-jina-ecosystem-test:
runs-on: ubuntu-latest
needs: [lint-flake-8, code-injection ]
strategy:
fail-fast: false
steps:
- uses: actions/[email protected]
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Prepare enviroment
run: |
python -m pip install --upgrade pip
python -m pip install wheel
HUBBLE_VERSION=$(curl -L -s "https://pypi.org/pypi/jina-hubble-sdk/json" | jq -r '.releases | keys | .[]| select(startswith("0."))' | sort -V | tail -1)
DOCARRAY_VERSION=$(curl -L -s "https://pypi.org/pypi/docarray/json" | jq -r '.releases | keys | .[]| select(startswith("0."))' | sort -V | tail -1)
JCLOUD_VERSION=$(curl -L -s "https://pypi.org/pypi/jcloud/json" | jq -r '.releases | keys | .[]| select(startswith("0."))' | sort -V | tail -1)
pip install . jcloud==$JCLOUD_VERSION docarray==$DOCARRAY_VERSION jina-hubble-sdk==$HUBBLE_VERSION
env:
JINA_PIP_INSTALL_CORE: ${{ matrix.core }}
JINA_PIP_INSTALL_PERF: ${{ matrix.perf }}

- name: Test basic import
run: python -c 'from jina import Executor,requests'
- name: Test import all
run: python -c 'from jina import *'


# just for blocking the merge until all parallel core-test are successful
success-all-test:
Expand Down
32 changes: 31 additions & 1 deletion .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,38 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NIGHTLY_TESTS_WEBHOOK }}
MATRIX_CONTEXT: ${{ toJson(matrix) }}

install-jina-ecosystem-test:
runs-on: ubuntu-latest
needs: [lint-flake-8, code-injection ]
strategy:
fail-fast: false
steps:
- uses: actions/[email protected]
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Prepare enviroment
run: |
python -m pip install --upgrade pip
python -m pip install wheel
HUBBLE_VERSION=$(curl -L -s "https://pypi.org/pypi/jina-hubble-sdk/json" | jq -r '.releases | keys | .[]| select(startswith("0."))' | sort -V | tail -1)
DOCARRAY_VERSION=$(curl -L -s "https://pypi.org/pypi/docarray/json" | jq -r '.releases | keys | .[]| select(startswith("0."))' | sort -V | tail -1)
JCLOUD_VERSION=$(curl -L -s "https://pypi.org/pypi/jcloud/json" | jq -r '.releases | keys | .[]| select(startswith("0."))' | sort -V | tail -1)
pip install . jcloud==$JCLOUD_VERSION docarray==$DOCARRAY_VERSION jina-hubble-sdk==$HUBBLE_VERSION
env:
JINA_PIP_INSTALL_CORE: ${{ matrix.core }}
JINA_PIP_INSTALL_PERF: ${{ matrix.perf }}

- name: Test basic import
run: python -c 'from jina import Executor,requests'
- name: Test import all
run: python -c 'from jina import *'

success-all-test:
needs: [prep-testbed, windows-test]
needs: [prep-testbed, windows-test, install-jina-ecosystem-test]
if: always()
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 0e34e4e

Please sign in to comment.