1818 - id : set-matrix
1919 run : |
2020 if [[ "${{ github.event_name }}" == "pull_request" && "${{ github.base_ref }}" == "develop" ]]; then
21- echo "matrix_os=[\"ubuntu-latest\"]" >> $GITHUB_OUTPUT
21+ echo "matrix_os=[ \"ubuntu-latest\"]" >> $GITHUB_OUTPUT
2222 else
2323 echo "matrix_os=[\"windows-latest\", \"ubuntu-latest\", \"macos-latest\"]" >> $GITHUB_OUTPUT
2424 fi
@@ -134,7 +134,7 @@ jobs:
134134 path : ~/.cache/mhkit
135135
136136 prepare-wind-hindcast-cache :
137- needs : [check-changes]
137+ needs : [check-changes, prepare-wave-hindcast-cache ]
138138 runs-on : ubuntu-latest
139139 env :
140140 PYTHON_VER : 3.9
@@ -315,15 +315,16 @@ jobs:
315315 with :
316316 miniconda-version : ' latest'
317317 auto-update-conda : true
318+ environment-file : environment.yml
318319 activate-environment : TEST
319320 python-version : ${{ matrix.python-version }}
320- use-only-tar-bz2 : true
321+ use-only-tar-bz2 : false
321322
322323 - name : Setup Conda environment
323324 shell : bash -l {0}
324325 run : |
325- conda install numpy cython pip pytest hdf5 libnetcdf cftime netcdf4 coverage --strict-channel-priority
326- pip install -e . --no-deps -- force-reinstall
326+ conda install -c conda-forge pytest coverage=7.5.0 coveralls --strict-channel-priority
327+ pip install -e . --force-reinstall
327328
328329 - name : Download Wave Hindcast data from artifact
329330 uses : actions/download-artifact@v4
@@ -347,8 +348,6 @@ jobs:
347348 - name : Install MHKiT and run pytest
348349 shell : bash -l {0}
349350 run : |
350- python -m pip install --upgrade pip wheel
351- pip install coveralls .
352351 coverage run --rcfile=.github/workflows/.coveragehindcastrc -m pytest -c .github/workflows/pytest-hindcast.ini
353352 coverage lcov
354353
0 commit comments