From 573b0a27f3f3666209f2369920512d4adf62ede0 Mon Sep 17 00:00:00 2001 From: samsja Date: Thu, 4 May 2023 17:07:12 +0200 Subject: [PATCH] chore: add seperate jac ci Signed-off-by: samsja --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea673567d77..d10a0417be8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,7 +108,7 @@ jobs: - name: Test id: test run: | - poetry run pytest -m "not (tensorflow or benchmark or index)" ${{ matrix.test-path }} + poetry run pytest -m "not (tensorflow or benchmark or index)" ${{ matrix.test-path }} --ignore=tests/integrations/store/test_jac.py timeout-minutes: 30 env: JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}" @@ -127,6 +127,36 @@ jobs: # token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos + docarray-test-jac: + needs: [lint-ruff, check-black, import-test] + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [3.7] + 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 environment + run: | + python -m pip install --upgrade pip + python -m pip install poetry + poetry install --all-extras + poetry run pip install elasticsearch==8.6.2 + sudo apt-get update + sudo apt-get install --no-install-recommends ffmpeg + + - name: Test + id: test + run: | + poetry run pytest -m "not (tensorflow or benchmark or index)" tests/integrations/store/test_jac.py + timeout-minutes: 30 + env: + JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}" + docarray-test-uncaped: # do test without using poetry lock. This does not block ci passing needs: [lint-ruff, check-black, import-test] @@ -155,7 +185,7 @@ jobs: - name: Test id: test run: | - poetry run pytest -m "not (tensorflow or benchmark or index)" ${{ matrix.test-path }} + poetry run pytest -m "not (tensorflow or benchmark or index)" ${{ matrix.test-path }} --ignore=tests/integrations/store/test_jac.py timeout-minutes: 30 env: JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}"