From c3bf62d4b07683a76925b67d6abfcbdf2a51467a Mon Sep 17 00:00:00 2001 From: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> Date: Thu, 23 Feb 2023 11:00:20 +0100 Subject: [PATCH] Add a simple way to skip required tests checks (#4245) --- .github/workflows/tests.yml | 24 ++++++++++++++++++++++++ .github/workflows/tests_skipper.yml | 22 ++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/tests_skipper.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d6f0ee6c0..804bd2155 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -642,3 +642,27 @@ jobs: status: ${{ job.status }} channel: '#haystack' if: failure() && github.repository_owner == 'deepset-ai' && github.ref == 'refs/heads/main' + + catch-all: + name: Catch-all check + runs-on: ubuntu-latest + # This job will be executed only after all the other tests + # are successful. + # This way we'll be able to mark only this test as required + # and skip it accordingly. + needs: + - integration-tests-elasticsearch + - integration-tests-sql + - integration-tests-opensearch + - integration-tests-dc + - integration-tests-faiss + - integration-tests-weaviate + - integration-tests-pinecone + - integration-tests-milvus + - integration-tests-memory + - integration-tests-linux + - integration-tests-windows + + steps: + - name: Finisher + run: echo "Finish him!" diff --git a/.github/workflows/tests_skipper.yml b/.github/workflows/tests_skipper.yml new file mode 100644 index 000000000..a14e3b34d --- /dev/null +++ b/.github/workflows/tests_skipper.yml @@ -0,0 +1,22 @@ +name: Tests + +on: + pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review + paths-ignore: + - "**.py" + - "pyproject.toml" + - "!.github/**/*.py" + - "!rest_api/**/*.py" + +jobs: + catch-all: + name: Catch-all check + runs-on: ubuntu-latest + steps: + - name: Skip tests + run: echo "Skipped!"