diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 034e5e0f4..995b6f3f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -243,11 +243,13 @@ jobs: run: | pip install --upgrade --upgrade-strategy eager numpy scipy matplotlib numexpr setuptools cython pytest tqdm - name: Install pynbody - if: ${{ matrix.REQUIRES_PYNBODY }} + if: ${{ matrix.REQUIRES_PYNBODY && ( matrix.python-version == '3.11' || matrix.python-version == '3.10' || matrix.python-version == '3.9' || matrix.python-version == '3.8' || matrix.os != 'ubuntu-latest' ) }} run: | pip install --upgrade --upgrade-strategy eager h5py pandas pytz pip install --upgrade --upgrade-strategy eager wheel pip install --upgrade --upgrade-strategy eager pynbody + - name: Install pynbody + if: ${{ matrix.REQUIRES_PYNBODY && matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' }} - name: Install astropy if: ${{ matrix.REQUIRES_ASTROPY }} run: pip install astropy pyerfa