ci: Simplify Python dependency installs for Linux and macOS. (#5458)
authorMathias Preiner <mathias.preiner@gmail.com>
Wed, 18 Nov 2020 00:01:55 +0000 (16:01 -0800)
committerGitHub <noreply@github.com>
Wed, 18 Nov 2020 00:01:55 +0000 (16:01 -0800)
.github/workflows/ci.yml

index 04b36130e4da2e54126fa2d3c3c9896c9c585a78..acc13c2ee8cfbe94c2f0109a11a80de5b8d2f177 100644 (file)
@@ -90,24 +90,14 @@ jobs:
         python3 -m pip install pexpect
         echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH
 
-    - name: Install Cython
-      if: matrix.python-bindings && runner.os == 'Linux'
-      run: |
-        python3 -m pip install \
-          Cython==0.29.* --install-option="--no-cython-compile"
-        echo "$(python3 -m site --user-base)/bin" >> $GITHUB_PATH
-
-    - name: Install Cython (macOS)
-      if: matrix.python-bindings && runner.os == 'macOS'
-      run: |
-        python3 -m pip install \
-          Cython==0.29 --install-option="--no-cython-compile"
-
-    - name: Install Pytest
+    - name: Install Python Dependencies
       if: matrix.python-bindings
       run: |
         python3 -m pip install pytest
         python3 -m pytest --version
+        python3 -m pip install \
+          Cython==0.29.* --install-option="--no-cython-compile"
+        echo "$(python3 -m site --user-base)/bin" >> $GITHUB_PATH
 
     - name: Restore Dependencies
       id: restore-deps