-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1160 from Libensemble/release/v_1.1.0
Release/v 1.1.0
- Loading branch information
Showing
64 changed files
with
670 additions
and
937 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
name: libEnsemble-simple-CI | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- ready_for_review | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
jobs: | ||
test-libE: | ||
if: '! github.event.pull_request.draft' | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
mpi-version: [mpich] | ||
python-version: [3.9, "3.10", "3.11", "3.12"] | ||
comms-type: [m, l] | ||
include: | ||
- os: macos-latest | ||
python-version: 3.11 | ||
mpi-version: "mpich=4.0.3" | ||
comms-type: m | ||
- os: macos-latest | ||
python-version: 3.11 | ||
mpi-version: "mpich=4.0.3" | ||
comms-type: l | ||
|
||
env: | ||
HYDRA_LAUNCHER: "fork" | ||
TERM: xterm-256color | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup conda - Python ${{ matrix.python-version }} | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: condaenv | ||
miniconda-version: "latest" | ||
python-version: ${{ matrix.python-version }} | ||
channels: conda-forge | ||
channel-priority: flexible | ||
auto-update-conda: true | ||
|
||
- uses: actions/cache/restore@v3 | ||
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 }} | ||
|
||
- name: Force-update certifi | ||
run: | | ||
python --version | ||
pip install -I --upgrade certifi | ||
- name: Install Ubuntu compilers | ||
if: matrix.os == 'ubuntu-latest' | ||
run: conda install gcc_linux-64 | ||
|
||
# Roundabout solution on macos for proper linking with mpicc | ||
- name: Install macOS compilers and older SDK | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.15.sdk.tar.xz | ||
mkdir ../sdk; tar xf MacOSX10.15.sdk.tar.xz -C ../sdk | ||
conda install clang_osx-64 | ||
- name: Install basic testing/feature dependencies | ||
run: | | ||
pip install -r install/testing_requirements.txt | ||
pip install -r install/misc_feature_requirements.txt | ||
- name: Install mpi4py and MPI from conda | ||
run: | | ||
conda install mpi4py ${{ matrix.mpi-version }} | ||
- name: Install generator dependencies | ||
if: matrix.os != 'windows-latest' && steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install mpmath | ||
conda install numpy nlopt scipy | ||
- uses: actions/cache/save@v3 | ||
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, lock environment | ||
run: | | ||
pip install -e . | ||
flake8 libensemble | ||
- name: Run simple tests, Ubuntu | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
./libensemble/tests/run-tests.sh -A "-W error" -z -${{ matrix.comms-type }} | ||
- name: Run simple tests, macOS | ||
if: matrix.os == 'macos-latest' | ||
env: | ||
CONDA_BUILD_SYSROOT: /Users/runner/work/libensemble/sdk/MacOSX10.15.sdk | ||
run: | | ||
./libensemble/tests/run-tests.sh -A "-W error" -z -${{ matrix.comms-type }} | ||
- name: Merge coverage | ||
run: | | ||
mv libensemble/tests/.cov* . | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
spellcheck: | ||
name: Spellcheck release branch | ||
if: contains(github.base_ref, 'develop') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: crate-ci/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
[default] | ||
extend-ignore-identifiers-re = [ | ||
".*NDArray.*", | ||
"8ba9de56.*" | ||
] | ||
|
||
[default.extend-words] | ||
als = "als" | ||
datas = "datas" | ||
numer = "numer" | ||
inout = "inout" | ||
|
||
[files] | ||
extend-exclude = ["*.bib", "*.xml"] | ||
extend-exclude = ["*.bib", "*.xml", "docs/nitpicky"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.