Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
microprediction committed Jul 22, 2021
2 parents 88d3a9d + ed6f1aa commit 112ae82
Show file tree
Hide file tree
Showing 15 changed files with 651 additions and 33 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test-ax.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test-ax

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install flake8 pytest
python -m pip install pathlib
python -m pip install cmake
python -m pip install --upgrade ax-platform
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install test dependecies
run: |
pip install -e .[test]
- name: Test with pytest
run: |
pytest
43 changes: 43 additions & 0 deletions .github/workflows/test-bayesopt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test-bayesopt

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install flake8 pytest
python -m pip install pathlib
python -m pip install cmake
python -m pip install --upgrade bayesopt
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install test dependecies
run: |
pip install -e .[test]
- name: Test with pytest
run: |
pytest
43 changes: 43 additions & 0 deletions .github/workflows/test-bobyqa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test-bobyqa

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install flake8 pytest
python -m pip install pathlib
python -m pip install cmake
python -m pip install --upgrade py-bobyqa
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install test dependecies
run: |
pip install -e .[test]
- name: Test with pytest
run: |
pytest
43 changes: 43 additions & 0 deletions .github/workflows/test-dlib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test-dlib

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install flake8 pytest
python -m pip install pathlib
python -m pip install cmake
python -m pip install --upgrade dlib
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install test dependecies
run: |
pip install -e .[test]
- name: Test with pytest
run: |
pytest
43 changes: 43 additions & 0 deletions .github/workflows/test-hebo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test-hebo

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install flake8 pytest
python -m pip install pathlib
python -m pip install cmake
python -m pip install --upgrade hebo
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install test dependecies
run: |
pip install -e .[test]
- name: Test with pytest
run: |
pytest
43 changes: 43 additions & 0 deletions .github/workflows/test-hyperopt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test-hyperopt

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install flake8 pytest
python -m pip install pathlib
python -m pip install cmake
python -m pip install --upgrade hyperopt
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install test dependecies
run: |
pip install -e .[test]
- name: Test with pytest
run: |
pytest
43 changes: 43 additions & 0 deletions .github/workflows/test-nevergrad.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test-nevergrad

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install flake8 pytest
python -m pip install pathlib
python -m pip install cmake
python -m pip install --upgrade nevergrad
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install test dependecies
run: |
pip install -e .[test]
- name: Test with pytest
run: |
pytest
43 changes: 43 additions & 0 deletions .github/workflows/test-nlopt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test-nlopt

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install flake8 pytest
python -m pip install pathlib
python -m pip install cmake
python -m pip install --upgrade nlopt
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install test dependecies
run: |
pip install -e .[test]
- name: Test with pytest
run: |
pytest
42 changes: 42 additions & 0 deletions .github/workflows/test-optuna.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: test-optuna

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install flake8 pytest
python -m pip install pathlib
python -m pip install --upgrade optuna
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install test dependecies
run: |
pip install -e .[test]
- name: Test with pytest
run: |
pytest
Loading

0 comments on commit 112ae82

Please sign in to comment.