From 0bcc956da6d9d4971ee0b92f69fa776d7aae24f1 Mon Sep 17 00:00:00 2001 From: Saba Sturua <45267439+jupyterjazz@users.noreply.github.com> Date: Tue, 16 May 2023 13:37:58 +0200 Subject: [PATCH] refactor: uncaped tests as a nightly job (#1540) Signed-off-by: jupyterjazz --- .github/workflows/ci.yml | 34 -------------------------------- .github/workflows/uncaped.yml | 37 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 34 deletions(-) create mode 100644 .github/workflows/uncaped.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5f55139f06..afcddc9c29c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -161,39 +161,6 @@ jobs: 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] - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: [3.7] - test-path: [tests/integrations, tests/units, tests/documentation] - 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 - rm poetry.lock - 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)" ${{ matrix.test-path }} --ignore=tests/integrations/store/test_jac.py - timeout-minutes: 30 - env: - JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}" - - docarray-test-proto3: needs: [lint-ruff, check-black, import-test] runs-on: ubuntu-latest @@ -215,7 +182,6 @@ jobs: poetry run pip install protobuf==3.19.0 # we check that we support 3.19 sudo apt-get update sudo apt-get install --no-install-recommends ffmpeg - - name: Test id: test run: | diff --git a/.github/workflows/uncaped.yml b/.github/workflows/uncaped.yml new file mode 100644 index 00000000000..9e4b010c92c --- /dev/null +++ b/.github/workflows/uncaped.yml @@ -0,0 +1,37 @@ +name: Uncaped + +on: + schedule: + - cron: '0 0,1 * * *' # Run at midnight, 1 AM UTC + +jobs: + docarray-test-uncaped: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [3.7] + test-path: [tests/integrations, tests/units, tests/documentation] + 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 + rm poetry.lock + 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)" ${{ matrix.test-path }} --ignore=tests/integrations/store/test_jac.py + timeout-minutes: 30 + env: + JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}"