Add a simple way to skip required tests checks (#4245)

This commit is contained in:
Silvano Cerza 2023-02-23 11:00:20 +01:00 committed by GitHub
parent 764eaa035f
commit c3bf62d4b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View File

@ -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!"

22
.github/workflows/tests_skipper.yml vendored Normal file
View File

@ -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!"