From 75c7b5b1adb944e332a0df9c9f609a6e834fa877 Mon Sep 17 00:00:00 2001 From: Peter Bittner Date: Sat, 29 Jul 2023 02:18:01 +0200 Subject: [PATCH] Use simplified syntax in GHA if-block --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f6876ee8..d48e716b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,10 +46,10 @@ jobs: if: matrix.python-version == 'pypy-3.7' && matrix.platform == 'windows-latest' run: python -m pip install tox-conda tox-gh-actions wheel - name: Install optional dependencies (extras) on Linux/macOS - if: ${{ matrix.extras != 'none' && matrix.platform != 'windows-latest' }} + if: matrix.extras != 'none' && matrix.platform != 'windows-latest' run: conda install -c anaconda ${{ matrix.extras }} - name: Install optional dependencies (extras) on Windows - if: ${{ matrix.extras != 'none' && matrix.platform == 'windows-latest' }} + if: matrix.extras != 'none' && matrix.platform == 'windows-latest' run: . ${env:CONDA}\scripts\conda.exe install -c anaconda ${{ matrix.extras }} - name: Run tests run: tox