about summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2023-08-31 17:16:47 +0100
committerGitHub <noreply@github.com>2023-08-31 17:16:47 +0100
commit7d58f0769a8f08e46ea77432041577cef94c07e2 (patch)
treec8d9e976dc776441384b7701299368b80477d40d /.github
parent86e3cf5e5849aefcc540c19bb5fa5ab7f470d1c1 (diff)
downloadyoutube-dl-7d58f0769a8f08e46ea77432041577cef94c07e2.tar.gz
youtube-dl-7d58f0769a8f08e46ea77432041577cef94c07e2.tar.xz
youtube-dl-7d58f0769a8f08e46ea77432041577cef94c07e2.zip
[ci.yml] Improve conditions for nosetest installations
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a73bedae1..7fb8f9f83 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -368,7 +368,7 @@ jobs:
         done
     #-------- nose --------
     - name: Install nose for Python ${{ matrix.python-version }}
-      if: ${{ (matrix.python-version != '3.2' && steps.setup-python.outputs.python-path) || matrix.python-version == '2.7' || matrix.python-version == '3.12' }}
+      if: ${{ (matrix.python-version != '3.2' && steps.setup-python.outputs.python-path) || (matrix.python-impl == 'cpython' && (matrix.python-version == '2.7' || matrix.python-version == '3.12')) }}
       shell: bash
       run: |
         echo "$PATH"
@@ -380,7 +380,7 @@ jobs:
         [ "$py3ver" -ge 9 ] && nose=pynose || nose=nose
         $PIP -qq show $nose || $PIP install $nose
     - name: Install nose for other Python 2
-      if: ${{ matrix.python-impl == 'jython' || matrix.python-version == '2.6' }}
+      if: ${{ matrix.python-impl == 'jython' || (matrix.python-impl == 'cpython' && matrix.python-version == '2.6') }}
       shell: bash
       run: |
         # Work around deprecation of support for non-SNI clients at PyPI CDN (see https://status.python.org/incidents/hzmjhqsdjqgb)