Skip to content

Commit

Permalink
Merge pull request #45 from thomaswmorris/hypervolume
Browse files Browse the repository at this point in the history
Added hypervolume acquisition and constraints
  • Loading branch information
thomaswmorris authored Sep 28, 2023
2 parents 29ea036 + d2ba1d1 commit c429cf9
Show file tree
Hide file tree
Showing 24 changed files with 882 additions and 377 deletions.
42 changes: 26 additions & 16 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ jobs:
with:
fetch-depth: 0

- name: Start MongoDB
uses: supercharge/[email protected]
# - name: Start MongoDB
# uses: supercharge/[email protected]

- name: Start Sirepo Docker container
uses: NSLS-II/start-sirepo-action@v2
with:
docker-binary: docker
# - name: Start Sirepo Docker container
# uses: NSLS-II/start-sirepo-action@v2
# with:
# docker-binary: docker

- name: Copy databroker config file
run: |
set -vxeuo pipefail
mkdir -v -p ~/.config/databroker/
wget https://raw.githubusercontent.com/NSLS-II/sirepo-bluesky/main/examples/local.yml -O ~/.config/databroker/local.yml
# - name: Copy databroker config file
# run: |
# set -vxeuo pipefail
# mkdir -v -p ~/.config/databroker/
# wget https://raw.githubusercontent.com/NSLS-II/sirepo-bluesky/main/examples/local.yml -O ~/.config/databroker/local.yml

- name: Set up Python ${{ matrix.python-version }} with conda
uses: conda-incubator/setup-miniconda@v2
Expand All @@ -57,19 +57,29 @@ jobs:
mamba-version: "*"
channels: conda-forge

- name: Install documentation-building requirements
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install documentation-building requirements with apt/dpkg
run: |
set -vxeuo pipefail
wget --progress=dot:giga "https://github.com/jgm/pandoc/releases/download/3.1.6.1/pandoc-3.1.6.1-1-amd64.deb" -O /tmp/pandoc.deb
sudo dpkg -i /tmp/pandoc.deb
# conda install -c conda-forge -y pandoc
which pandoc
pandoc --version
- name: Install documentation-building requirements with pip
run: |
# For reference: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html.
set -vxeo pipefail
conda env list
# mamba install -c conda-forge shadow3 srwpy pandoc
mamba install -c conda-forge pandoc
pip install --upgrade pip wheel
pip install -v .
pip install -r requirements-dev.txt
pip list
conda list
- name: Build Docs
run: make -C docs/ html
Expand Down
46 changes: 24 additions & 22 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,45 +32,47 @@ jobs:
- name: Checkout the code
uses: actions/checkout@v3

- name: Start MongoDB
uses: supercharge/[email protected]
# - name: Start MongoDB
# uses: supercharge/[email protected]

- name: Start Sirepo Docker container
uses: NSLS-II/start-sirepo-action@v2
with:
docker-binary: docker
# - name: Start Sirepo Docker container
# uses: NSLS-II/start-sirepo-action@v2
# with:
# docker-binary: docker

- name: Copy databroker config file
run: |
set -vxeuo pipefail
mkdir -v -p ~/.config/databroker/
wget https://raw.githubusercontent.com/NSLS-II/sirepo-bluesky/main/examples/local.yml -O ~/.config/databroker/local.yml
# - name: Copy databroker config file
# run: |
# set -vxeuo pipefail
# mkdir -v -p ~/.config/databroker/
# wget https://raw.githubusercontent.com/NSLS-II/sirepo-bluesky/main/examples/local.yml -O ~/.config/databroker/local.yml

# - name: Set up Python ${{ matrix.python-version }} with conda
# uses: conda-incubator/setup-miniconda@v2
# with:
# activate-environment: ${{ env.REPOSITORY_NAME }}-py${{ matrix.python-version }}
# auto-update-conda: true
# miniconda-version: "latest"
# python-version: ${{ matrix.python-version }}
# mamba-version: "*"
# channels: conda-forge

- name: Set up Python ${{ matrix.python-version }} with conda
uses: conda-incubator/setup-miniconda@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
activate-environment: ${{ env.REPOSITORY_NAME }}-py${{ matrix.python-version }}
auto-update-conda: true
miniconda-version: "latest"
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge

- name: Install the package and its dependencies
run: |
# For reference: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html.
set -vxeo pipefail
conda env list
# mamba install -c conda-forge shadow3 srwpy
pip install --upgrade pip wheel
pip install -v .
pip install -r requirements-dev.txt
pip list
conda list
- name: Test with pytest
run: |
set -vxeuo pipefail
coverage run -m pytest -vv -s
coverage run -m pytest -vv -s -m test_func
coverage report -m
Loading

0 comments on commit c429cf9

Please sign in to comment.