From 3b8542aca8adef7c25abd9ec9276c041ee219ae8 Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Wed, 9 Aug 2023 22:02:29 +0200 Subject: [PATCH] CI: simplify conditionals. --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6d23cd..e544460 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,17 +39,17 @@ jobs: PATH+=:~/.local/bin echo "$PATH" >> $GITHUB_PATH - name: set up Python ${{matrix.python}} - if: ${{ ! startsWith(matrix.python, '2.') }} + if: matrix.python != '2.7' uses: actions/setup-python@v4 with: python-version: ${{matrix.python}} - name: set up APT - if: ${{ startsWith(matrix.python, '2.') }} + if: matrix.python == '2.7' run: | printf 'Apt::Install-Recommends "false";\n' | tee -a /etc/apt/apt.conf apt-get update - name: upgrade TLS stack - if: ${{ startsWith(matrix.python, '2.') }} + if: matrix.python == '2.7' run: | apt-get install --only-upgrade -y ca-certificates libgnutls30 - name: install setuptools (if distutils is missing) @@ -109,7 +109,7 @@ jobs: pip install docutils pygments private/check-rst - name: run shellcheck - if: ${{ ! startsWith(matrix.python, '2.') }} + if: matrix.python != '2.7' run: | shellcheck py-afl-*