Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 1 addition & 34 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,6 @@ jobs:
channel-priority: flexible
auto-update-conda: true

- uses: actions/cache/restore@v4
name: Restore cached dependencies
id: cache
if: matrix.os == 'ubuntu-latest'
with:
path: |
/home/runner/.local
/usr/share/miniconda3/envs/condaenv
/usr/share/miniconda3/bin
/usr/share/miniconda3/lib
/usr/share/miniconda3/include
key: libe-${{ github.ref_name }}-${{ matrix.python-version }}-${{ matrix.comms-type }}-${{ matrix.pydantic-version }}-basic

- name: Force-update certifi
run: |
python --version
Expand All @@ -95,15 +82,7 @@ jobs:
run: |
pip install -r install/testing_requirements.txt
pip install -r install/misc_feature_requirements.txt

git clone --recurse-submodules -b develop https://github.com/POptUS/IBCDFO.git
pushd IBCDFO/minq/py/minq5/
export PYTHONPATH="$PYTHONPATH:$(pwd)"
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
popd
pushd IBCDFO/ibcdfo_pypkg/
pip install -e .
popd
source install/install_ibcdfo.sh

- name: Install mpi4py and MPI from conda
run: |
Expand All @@ -115,18 +94,6 @@ jobs:
pip install mpmath matplotlib
conda install numpy nlopt scipy

- uses: actions/cache/save@v4
name: Save dependencies to cache
if: matrix.os == 'ubuntu-latest'
with:
path: |
/home/runner/.local
/usr/share/miniconda3/envs/condaenv
/usr/share/miniconda3/bin
/usr/share/miniconda3/lib
/usr/share/miniconda3/include
key: libe-${{ github.ref_name }}-${{ matrix.python-version }}-${{ matrix.comms-type }}

- name: Install libEnsemble, flake8
run: |
pip install pydantic==${{ matrix.pydantic-version }}
Expand Down
69 changes: 8 additions & 61 deletions .github/workflows/extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,6 @@ jobs:
channel-priority: flexible
auto-update-conda: true

- uses: actions/cache/restore@v4
name: Restore cached dependencies
id: cache
if: matrix.os == 'ubuntu-latest'
with:
path: |
/home/runner/.local
/usr/share/miniconda3/envs/condaenv
/usr/share/miniconda3/bin
/usr/share/miniconda3/lib
/usr/share/miniconda3/include
key: libe-${{ github.ref_name }}-${{ matrix.python-version }}-${{ matrix.comms-type }}-${{ matrix.pydantic-version }}-extra

- name: Force-update certifi
run: |
python --version
Expand All @@ -96,45 +83,29 @@ jobs:
conda install clang_osx-64

- name: Install mpi4py and MPI from conda
if: (matrix.python-version != '3.10' && matrix.os == 'ubuntu-latest') || matrix.os == 'macos-latest'
run: |
conda install mpi4py ${{ matrix.mpi-version }}

- name: Install mpi4py from pip, MPI from conda
if: matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest'
run: |
conda install ${{ matrix.mpi-version }}
pip install mpi4py

- name: Install generator dependencies
run: |
python -m pip install --upgrade pip
pip install mpmath
pip install matplotlib
conda env update --file install/gen_deps_environment.yml

#- name: Install ax-platform
# run: pip install "ax-platform<=0.4.0"

- name: Install gpcam
if: matrix.python-version != '3.12'
run: |
pip install gpcam

- name: Install surmise
if: matrix.os != 'macos-latest'
if: matrix.os == 'ubuntu-latest'
run: |
pip install --upgrade git+https://github.com/bandframework/surmise.git

- name: Install generator dependencies for Ubuntu tests
if: matrix.os == 'ubuntu-latest' && matrix.python-version != '3.12'
run: |
sudo apt-get install bc

# pip install dragonfly-opt
# pip install git+https://github.com/dragonfly/dragonfly.git
pip install git+https://github.com/jlnav/dragonfly.git@fix/remove_npobject
pip install scikit-build packaging Tasmanian --user
pip install -r install/ubuntu_no312.txt
pip install Tasmanian --user

- name: Install Balsam on Pydantic 1
if: matrix.pydantic-version == '1.10.17'
Expand All @@ -149,27 +120,7 @@ jobs:
conda install octave
pip install -r install/testing_requirements.txt
pip install -r install/misc_feature_requirements.txt

git clone --recurse-submodules -b develop https://github.com/POptUS/IBCDFO.git
pushd IBCDFO/minq/py/minq5/
export PYTHONPATH="$PYTHONPATH:$(pwd)"
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
popd
pushd IBCDFO/ibcdfo_pypkg/
pip install -e .
popd

- uses: actions/cache/save@v4
name: Save dependencies to cache
if: matrix.os == 'ubuntu-latest'
with:
path: |
/home/runner/.local
/usr/share/miniconda3/envs/condaenv
/usr/share/miniconda3/bin
/usr/share/miniconda3/lib
/usr/share/miniconda3/include
key: libe-${{ github.ref_name }}-${{ matrix.python-version }}-${{ matrix.comms-type }}
source install/install_ibcdfo.sh

- name: Install libEnsemble, flake8, lock environment
run: |
Expand All @@ -183,11 +134,13 @@ jobs:
# rm ./libensemble/tests/regression_tests/test_gpCAM.py
rm ./libensemble/tests/regression_tests/test_persistent_gp.py

- name: Remove test for persistent Tasmanian on Python 3.12
- name: Remove test for persistent Tasmanian, Surmise on Python 3.12
if: matrix.python-version >= '3.12'
run: |
rm ./libensemble/tests/regression_tests/test_persistent_tasmanian.py
rm ./libensemble/tests/regression_tests/test_persistent_tasmanian_async.py
rm ./libensemble/tests/regression_tests/test_persistent_surmise_calib.py
rm ./libensemble/tests/regression_tests/test_persistent_surmise_killsims.py

- name: Install redis/proxystore on Pydantic 2
if: matrix.pydantic-version == '2.8.2'
Expand All @@ -212,16 +165,10 @@ jobs:
with:
redis-version: 7

- name: Run extensive tests, Ubuntu
if: matrix.os == 'ubuntu-latest'
- name: Run extensive tests
run: |
./libensemble/tests/run-tests.sh -e -z -${{ matrix.comms-type }}

- name: Run extensive tests, macOS
if: matrix.os == 'macos-latest'
run: |
./libensemble/tests/run-tests.sh -e -z -${{ matrix.comms-type }}

- name: Merge coverage
run: |
mv libensemble/tests/.cov* .
Expand Down
10 changes: 10 additions & 0 deletions install/install_ibcdfo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

git clone --recurse-submodules -b develop https://github.com/POptUS/IBCDFO.git
pushd IBCDFO/minq/py/minq5/
export PYTHONPATH="$PYTHONPATH:$(pwd)"
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
popd
pushd IBCDFO/ibcdfo_pypkg/
pip install -e .
popd
1 change: 1 addition & 0 deletions install/testing_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ mock==5.1.0
python-dateutil==2.9.0.post0
anyio==4.4.0
matplotlib==3.9.2
mpmath==1.3.0
5 changes: 5 additions & 0 deletions install/ubuntu_no312.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
gpcam==8.1.6
scikit-build==0.18.1
packaging==24.1
git+https://github.com/jlnav/dragonfly.git@fix/remove_npobject
git+https://github.com/bandframework/surmise.git