Skip to content

Commit

Permalink
Merge pull request #263 from ardunn/master
Browse files Browse the repository at this point in the history
add CI for 3.6
  • Loading branch information
ardunn authored Nov 10, 2019
2 parents a9324d8 + 1165554 commit 3be037c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
34 changes: 33 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,38 @@ jobs:
key: v1-dependencies-{{ checksum "requirements.txt" }}


py367:
working_directory: ~/py367_automatminer
docker:
- image: circleci/python:3.6.7
environment:
SKIP_INTENSIVE: 1
steps:
- checkout

# Download and cache dependencies
# Try commenting this out if there are ContextualVersionConflict errors
# - restore_cache:
# keys:
# - v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
# - v1-dependencies-

- run:
name: setup env and run tests
command: |
source dev_scripts/setup_env.sh
source dev_scripts/run_tests.sh
no_output_timeout: 10m

- save_cache:
paths:
- ./test_env
key: v1-dependencies-{{ checksum "requirements.txt" }}


code_style:
working_directory: ~/py372_automatminer
docker:
Expand Down Expand Up @@ -62,10 +94,10 @@ jobs:
key: v1-dependencies-{{ checksum "requirements.txt" }}



workflows:
version: 2
run_tests_on_commit:
jobs:
- py372
- py367
- code_style
8 changes: 5 additions & 3 deletions automatminer_dev/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"max_eval_time_mins": 20,
"population_size": 200,
#todo: change this back
# "memory": "auto",
"memory": "auto",
"n_jobs": N_JOBS,
},
# "reducer_kwargs": {"reducers": ("corr",)},
Expand Down Expand Up @@ -80,9 +80,11 @@

from automatminer_dev.config import EXPT_IS_METAL, EXPT_GAP, MP_E_FORM
worker = "lrc"
# wf = wf_benchmark(worker, pipe_config, **EXPT_IS_METAL, cache=True, tags=tags, prepend_name="live run")
wf = wf_benchmark(worker, pipe_config, **EXPT_GAP, cache=True, tags=tags, prepend_name="live run")

# wf = wf_benchmark(worker, pipe_config, **EXPT_GAP, cache=True, tags=tags)
# wf = wf_benchmark(worker, pipe_config, **EXPT_IS_METAL, cache=True, tags=tags)
wf = wf_benchmark(worker, pipe_config, **EXPT_GAP, cache=True, tags=tags)
# wf = wf_benchmark(worker, pipe_config_debug, **EXPT_IS_METAL, cache=True, tags=tags)
# wf = wf_benchmark(worker, pipe_config_debug, **EXPT_GAP, cache=True, tags=tags)


Expand Down
4 changes: 4 additions & 0 deletions automatminer_dev/workflows/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def wf_benchmark(
return_fireworks=False,
add_dataset_to_names=True,
build_id=None,
prepend_name="",
):
if fworker not in VALID_FWORKERS:
raise ValueError("fworker must be in {}".format(VALID_FWORKERS))
Expand Down Expand Up @@ -225,6 +226,9 @@ def wf_benchmark(
return links, connected_to_top_wf, fw_consolidate
else:
wf_name = "benchmark {}: ({}) [{}]".format(benchmark_hash, name, fworker)
if prepend_name:
wf_name = "<<{}>> {}".format(prepend_name, wf_name)

wf = Workflow(
list(links.keys()),
links_dict=links,
Expand Down

0 comments on commit 3be037c

Please sign in to comment.