@@ -274,13 +274,16 @@ jobs:
274274 python-version : ${{ matrix.python-version }}
275275
276276 - name : Setup Python Virtual Environment
277- shell : bash -l {0}
277+ working-directory : ${{ github.workspace }}
278+ shell : bash
278279 run : python -m venv venv
279280
280281 - name : Set up Git repository
282+ working-directory : ${{ github.workspace }}
281283 uses : actions/checkout@v6
282284
283285 - name : Download data from artifact
286+ working-directory : ${{ github.workspace }}
284287 uses : actions/download-artifact@v4
285288 with :
286289 name : data
@@ -294,32 +297,39 @@ jobs:
294297 sudo apt-get install -y libhdf5-dev libnetcdf-dev
295298
296299 - name : Update and install packages
297- shell : bash -l {0}
300+ working-directory : ${{ github.workspace }}
301+ shell : bash
298302 run : |
299303 source venv/bin/activate
300304 python -m pip install --upgrade pip wheel
301305 pip install -e ".[all,dev]"
302306
303307 - name : Reinstall h5py and netCDF4 with system libraries
308+ working-directory : ${{ github.workspace }}
304309 if : runner.os == 'Linux'
310+ shell : bash
305311 run : |
306312 source venv/bin/activate
307313 pip install --force-reinstall --no-binary=:all: h5py netCDF4
308314
309315 - name : Install setuptools for Python 3.12
316+ working-directory : ${{ github.workspace }}
310317 if : matrix.python-version == '3.12'
318+ shell : bash
311319 run : |
312320 source venv/bin/activate
313321 pip install setuptools
314322
315323 - name : Run pytest & generate coverage report
316- shell : bash -l {0}
324+ working-directory : ${{ github.workspace }}
325+ shell : bash
317326 run : |
318327 source venv/bin/activate
319328 coverage run --rcfile=.github/workflows/.coveragerc --source=./mhkit/ -m pytest -c .github/workflows/pytest.ini
320329 coverage lcov
321330
322331 - name : Upload coverage data to coveralls.io
332+ working-directory : ${{ github.workspace }}
323333 uses : coverallsapp/github-action@v2
324334 with :
325335 github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments