From f989c9f5f41d77b00dc2532ee64b7f642a4d0ca5 Mon Sep 17 00:00:00 2001 From: Kyle Sunden Date: Wed, 8 Feb 2023 13:34:15 -0600 Subject: [PATCH] BLD: Unbreak github tests workflow missing parenthesis introduced in #25145 Reformatted the if block based on a similar set of conditions from the cygwin tests to make it more readable and help locate the error. I will exercise the unbreak CI self merge upon green CI (unless objected to) --- .github/workflows/tests.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3479beb44faa..9f07eba44344 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,15 @@ env: jobs: test: - if: "github.event_name == 'workflow_dispatch' || github.repository == 'matplotlib/matplotlib' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]' && !contains(github.event.head_commit.message, '[ci doc]')" + if: | + github.event_name == 'workflow_dispatch' || + ( + github.repository == 'matplotlib/matplotlib' && + !contains(github.event.head_commit.message, '[ci skip]') && + !contains(github.event.head_commit.message, '[skip ci]') && + !contains(github.event.head_commit.message, '[skip github]') && + !contains(github.event.head_commit.message, '[ci doc]') + ) permissions: contents: read name: "Python ${{ matrix.python-version }} on ${{ matrix.os }} ${{ matrix.name-suffix }}"