File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -273,6 +273,10 @@ jobs:
273273 with :
274274 python-version : ${{ matrix.python-version }}
275275
276+ - name : Setup Python Virtual Environment
277+ shell : bash -l {0}
278+ run : python -m venv venv
279+
276280 - name : Set up Git repository
277281 uses : actions/checkout@v6
278282
@@ -292,20 +296,26 @@ jobs:
292296 - name : Update and install packages
293297 shell : bash -l {0}
294298 run : |
299+ source venv/bin/activate
295300 python -m pip install --upgrade pip wheel
296301 pip install -e ".[all,dev]"
297302
298303 - name : Reinstall h5py and netCDF4 with system libraries
299304 if : runner.os == 'Linux'
300- run : " pip install --force-reinstall --no-binary=:all: h5py netCDF4"
305+ run : |
306+ source venv/bin/activate
307+ pip install --force-reinstall --no-binary=:all: h5py netCDF4
301308
302309 - name : Install setuptools for Python 3.12
303310 if : matrix.python-version == '3.12'
304- run : pip install setuptools
311+ run : |
312+ source venv/bin/activate
313+ pip install setuptools
305314
306315 - name : Run pytest & generate coverage report
307316 shell : bash -l {0}
308317 run : |
318+ source venv/bin/activate
309319 coverage run --rcfile=.github/workflows/.coveragerc --source=./mhkit/ -m pytest -c .github/workflows/pytest.ini
310320 coverage lcov
311321
Original file line number Diff line number Diff line change 1515 </a>
1616</p >
1717
18- MHKiT-Python is a Python package designed for marine renewable energy applications to assist in
18+ MHKiT-Python is a Python package designed for marine energy applications to assist in
1919data processing and visualization. The software package include functionality for:
2020
2121- Data processing
You can’t perform that action at this time.
0 commit comments