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