mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-06 20:17:14 +00:00
* ci: use ubuntu-slim where makes sense * revert some changes * test more actions * test sync docs too * revert * set go version
25 lines
917 B
YAML
25 lines
917 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-slim
|
|
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!"
|