From f176dbd84605b47ee4201eab74bedfb89776ba9f Mon Sep 17 00:00:00 2001 From: "Jason K. Moore" Date: Thu, 6 Jun 2024 20:58:44 +0200 Subject: [PATCH] Fix if statements in workflow file. --- .github/workflows/runtests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/runtests.yml b/.github/workflows/runtests.yml index e923d25..151782e 100644 --- a/.github/workflows/runtests.yml +++ b/.github/workflows/runtests.yml @@ -24,12 +24,12 @@ jobs: miniforge-version: latest - name: Run nose shell: bash -l {0} - if: runner.python-version != '3.12' + if: ${{ matrix.python }} != '3.12' run: | nosetests -v --with-coverage --cover-package=yeadon - name: Run pytest shell: bash -l {0} - if: runner.python-version == '3.12' + if: ${{ matrix.python }} == '3.12' run: | conda install pytest coverage run -m pytest yeadon