Skip to content

Commit

Permalink
Actions: Install mhkit-python via conda-forge
Browse files Browse the repository at this point in the history
  • Loading branch information
simmsa committed Dec 9, 2024
1 parent 9a80223 commit 0c09133
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 36 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/unix_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
shell: bash -l {0}
run: |
conda activate mhkit_conda_env
conda install numpy==1.24.4 cython pip pytest hdf5 libnetcdf cftime netcdf4
conda install mhkit
# conda install netcdf4 hdf5
# export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH" # so setup.py finds nc-config
Expand All @@ -55,24 +55,24 @@ jobs:
# pip install -e .
# working-directory: ${{env.mhkit-python-dir}}

- name: pip install mhkit from pypi
shell: bash -l {0}
run: |
conda activate mhkit_conda_env
pip install mhkit==$MHKIT_PYTHON_VERSION
# - name: pip install mhkit from pypi
# shell: bash -l {0}
# run: |
# conda activate mhkit_conda_env
# pip install mhkit==$MHKIT_PYTHON_VERSION

- name: pip install mhkit-python-utils module from source
shell: bash -l {0}
run: |
conda activate mhkit_conda_env
pip install -e .
- name: Pin scipy version
shell: bash -l {0}
run: |
conda activate mhkit_conda_env
pip uninstall -y scipy
pip install scipy==1.10.1
# - name: Pin scipy version
# shell: bash -l {0}
# run: |
# conda activate mhkit_conda_env
# pip uninstall -y scipy
# pip install scipy==1.10.1

- name: List installed pip modules
shell: bash -l {0}
Expand Down Expand Up @@ -224,7 +224,8 @@ jobs:
shell: bash -l {0}
run: |
conda activate mhkit_conda_env
conda install numpy==1.24.4 cython pip pytest hdf5 libnetcdf cftime netcdf4
conda install mhkit
# conda install numpy==1.24.4 cython pip pytest hdf5 libnetcdf cftime netcdf4
# conda install netcdf4 hdf5
# export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH" # so setup.py finds nc-config
Expand Down Expand Up @@ -305,12 +306,12 @@ jobs:
conda activate mhkit_conda_env
pip install -e .
- name: Pin scipy version
shell: bash -l {0}
run: |
conda activate mhkit_conda_env
pip uninstall -y scipy
pip install scipy==1.10.1
# - name: Pin scipy version
# shell: bash -l {0}
# run: |
# conda activate mhkit_conda_env
# pip uninstall -y scipy
# pip install scipy==1.10.1

- name: List installed pip modules
shell: bash -l {0}
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/windows_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
channels: conda-forge

# This is necessary to fix any issues with netcdf4 and hdf5 headers
- name: "Conda install netcdf4, hdf5"
- name: Conda install mhkit
run: |
conda activate mhkit_conda_env
conda install numpy==1.24.4 netcdf4 hdf5
conda mhkit
- name: Check out MHKiT-MATLAB
uses: actions/checkout@v4

Expand All @@ -60,12 +60,12 @@ jobs:
conda activate mhkit_conda_env
pip install -e .
- name: Pin scipy version
shell: bash -l {0}
run: |
conda activate mhkit_conda_env
pip uninstall -y scipy
pip install scipy==1.10.1
# - name: Pin scipy version
# shell: bash -l {0}
# run: |
# conda activate mhkit_conda_env
# pip uninstall -y scipy
# pip install scipy==1.10.1

# Create the cache and add a dummy file
# The dummy file ensures that the artifact download
Expand Down Expand Up @@ -176,11 +176,11 @@ jobs:
channels: conda-forge

# This is necessary to fix any issues with netcdf4 and hdf5 headers
- name: "Conda install netcdf4, hdf5"
- name: Conda install mhkit
shell: bash -l {0}
run: |
conda activate mhkit_conda_env
conda install numpy==1.24.4 netcdf4 hdf5
conda install mhkit
- name: Output python executable
shell: bash -l {0}
run: |
Expand Down Expand Up @@ -217,13 +217,13 @@ jobs:
conda activate mhkit_conda_env
pip3 install -e .
- name: Pin scipy version
shell: bash -l {0}
run: |
conda activate mhkit_conda_env
pip uninstall -y scipy
pip install scipy==1.10.1
# - name: Pin scipy version
# shell: bash -l {0}
# run: |
# conda activate mhkit_conda_env
# pip uninstall -y scipy
# pip install scipy==1.10.1
#
- name: List installed pip modules
shell: bash -l {0}
run: |
Expand Down

0 comments on commit 0c09133

Please sign in to comment.