Skip to content

Commit

Permalink
CI: simplify conditionals.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilk committed Aug 9, 2023
1 parent 361b29e commit 3b8542a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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-*
Expand Down

0 comments on commit 3b8542a

Please sign in to comment.