Skip to content

Commit

Permalink
Merge pull request #292 from dyson-ai/feature/example_float
Browse files Browse the repository at this point in the history
run publish manually
  • Loading branch information
blooop authored Dec 23, 2023
2 parents 635590f + 9884912 commit 5a24ed1
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions test/test_bench_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
from bencher.example.example_strings import example_strings
from bencher.example.example_image import example_image
from bencher.example.example_video import example_video
from bencher.example.example_meta import example_meta
from bencher.example.example_meta_levels import example_meta_levels


import os

# shelved
Expand Down Expand Up @@ -50,16 +52,23 @@ def examples_asserts(self, example_result, save=False) -> None:
self.assertTrue(os.path.exists(path))

def test_publish_docs(self):
b_run = bch.BenchRunner("bench_runner_test", run_cfg=self.create_run_cfg())
run_cfg = self.create_run_cfg()
# b_run = bch.BenchRunner("bench_runner_test", run_cfg=run_cfg)
# b_run.add_run(example_categorical)
# b_run.add_run(example_floats)
b_run.add_run(example_image)
b_run.add_run(example_video)
b_run.add_run(example_meta_levels)
# b_run.add_run(example_image)
# b_run.add_run(example_video)
# b_run.add_run(example_meta_levels)
# b_run.add_run(run_levels)

b_run.run(level=4, grouped=True, save=True)
b_run.shutdown()
# b_run.run(level=4, grouped=True, save=True)
# b_run.shutdown()
report = bch.BenchReport()
example_image(run_cfg=run_cfg, report=report)
example_video(run_cfg=run_cfg, report=report)
example_meta_levels(run_cfg=run_cfg, report=report)
example_meta(run_cfg=run_cfg, report=report)

report.save()

# def test_example_categorical(self) -> None:
# self.examples_asserts(example_categorical(self.create_run_cfg()))
Expand Down

0 comments on commit 5a24ed1

Please sign in to comment.