Skip to content

Commit 199fea9

Browse files
authored
Merge pull request #323 from bwheelz36/master
switch to github actions for CI
2 parents 3076d38 + 60ed282 commit 199fea9

File tree

5 files changed

+7
-35
lines changed

5 files changed

+7
-35
lines changed

.github/workflows/run_tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ jobs:
3232
python -m pip install --upgrade pip
3333
pip install pytest
3434
pip install pytest-cov
35+
pip install codecov
3536
pip install -e .
3637
- name: Test with pytest
3738
run: |
3839
pytest --cov-config .coveragerc --cov-report html --cov=bayes_opt
40+
codecov

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Bayesian Optimization
66

7-
![tests](https://github.com/bwheelz36/BayesianOptimization/actions/workflows/run_tests.yml/badge.svg)
7+
![tests](https://github.com/fmfn/BayesianOptimization/actions/workflows/run_tests.yml/badge.svg)
88
[![Codecov](https://codecov.io/github/fmfn/BayesianOptimization/badge.svg?branch=master&service=github)](https://codecov.io/github/fmfn/BayesianOptimization?branch=master)
99
[![Pypi](https://img.shields.io/pypi/v/bayesian-optimization.svg)](https://pypi.python.org/pypi/bayesian-optimization)
1010

bayes_opt/target_space.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(self, target_func, pbounds, random_state=None):
4646
# Create an array with parameters bounds
4747
self._bounds = np.array(
4848
[item[1] for item in sorted(pbounds.items(), key=lambda x: x[0])],
49-
dtype=np.float
49+
dtype=float
5050
)
5151

5252
# preallocated memory for X and Y points

tests/test_observer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from bayes_opt.bayesian_optimization import Observable
22
from bayes_opt.observer import _Tracker
33
from bayes_opt.event import Events
4+
import os
45

56

67
EVENTS = ["a", "b", "c"]
@@ -109,7 +110,8 @@ def max(self):
109110

110111
tracker._time_metrics()
111112
assert start_time == tracker._start_time
112-
assert previous_time < tracker._previous_time
113+
if not 'win' in os.sys.platform:
114+
assert previous_time < tracker._previous_time
113115

114116

115117
if __name__ == '__main__':

0 commit comments

Comments
 (0)