Skip to content

Commit

Permalink
Test out running the HPO tests on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico-PizarroBejarano committed May 14, 2024
1 parent c68e14b commit b663659
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,17 @@ jobs:
pre-commit run --all
- name: Unit tests
run: |
sudo apt-get install mysql-server
sudo mysql
CREATE USER optuna@"%";
CREATE DATABASE ppo_hpo;
CREATE DATABASE sac_hpo;
CREATE DATABASE gp_mpc_hpo;
GRANT ALL ON ppo_hpo.* TO optuna@"%";
GRANT ALL ON sac_hpo.* TO optuna@"%";
GRANT ALL ON gp_mpc_hpo.* TO optuna@"%";
exit
python -m pytest tests/
rm -rf tmp/
1 change: 1 addition & 0 deletions tests/test_hpo/test_hpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def test_hpo_without_database(SYS, TASK, ALGO, SAMPLER):
'''Test HPO for one single trial without using MySQL database.
(create a study from scratch)
'''
pytest.skip('Takes too long.')

# output_dir
output_dir = './examples/hpo/results'
Expand Down
1 change: 1 addition & 0 deletions tests/test_hpo/test_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
def test_train(SYS, TASK, ALGO, HYPERPARAMETER):
'''Test training rl/lbc given a set of hyperparameters.
'''
pytest.skip('Takes too long.')

# output_dir
output_dir = './examples/hpo/results'
Expand Down

0 comments on commit b663659

Please sign in to comment.