mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-06-26 22:00:13 +00:00

* ci: trigger separate workflow * ci: temporary use current branch * ci: fix workflow name * ci: try with same job name * ci: try with dispatch * Revert "ci: try with dispatch" This reverts commit bd66e56c0697ae97fc2599eebaceff417d9be65c. * Revert "ci: try with same job name" This reverts commit 9e2ae5b402758c14a9f812c2e06f820bd3ece767. * ci: try with workflow call in both cases * ci: introduce change to trigger CI * Revert "ci: introduce change to trigger CI" This reverts commit e3ec07c5e26f114364babea69535183253c801b7. * ci: add name * Revert "Revert "ci: introduce change to trigger CI"" This reverts commit 6718585fd24069112e0f773e010056e1d96e3eee. * ci: improve naming * ci: further improve naming * Unset reusable workflow version and use relative path * Remove CI trigger --------- Co-authored-by: Silvano Cerza <silvanocerza@gmail.com>
25 lines
919 B
YAML
25 lines
919 B
YAML
# If you change this name also do it in tests.yml and ci_metrics.yml
|
|
# We use a separate workflow to skip the tests if the PR contains both code and non-code changes (e.g. release notes).
|
|
# Skipping the job unfortunately doesn't work because GitHub will treat these jobs as successful even if they are
|
|
# skipped. Hence, we need to revert to a separate workflow.
|
|
name: Tests
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
tests_were_skipped:
|
|
type: boolean
|
|
required: true
|
|
|
|
jobs:
|
|
catch-all:
|
|
# Don't run this check if the PR contains both code and non-code changes (e.g. release notes)
|
|
name: Mark tests as completed
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Skip tests
|
|
if: ${{ github.event.inputs.tests_were_skipped }}
|
|
run: echo "Skipped!"
|
|
- name: Tests completed successfully
|
|
if: ${{ !github.event.inputs.tests_were_skipped }}
|
|
run: echo "Tests completed!"
|