Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip unit test with optuna version #771

Conversation

keisuke-umezawa
Copy link
Member

@keisuke-umezawa keisuke-umezawa commented Jan 24, 2024

Contributor License Agreement

This repository (optuna-dashboard) and Goptuna share common code.
This pull request may therefore be ported to Goptuna.
Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.

  • I agree this patch may be ported to Goptuna by other Goptuna contributors.

Reference Issues/PRs

To follow up on #747

What does this implement/fix? Explain your changes.

  • I made unit tests pass with optuna v3.1.0.
  • I also checked that unit test passed with v3.2.0 - latest in my local env.
  • Added ci with oldest compatible optuna version v3.1.0

Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (06a0d5d) 69.50% compared to head (1497505) 69.52%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #771      +/-   ##
==========================================
+ Coverage   69.50%   69.52%   +0.01%     
==========================================
  Files          35       35              
  Lines        2358     2359       +1     
==========================================
+ Hits         1639     1640       +1     
  Misses        719      719              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your pull request. I left some comments.

Comment on lines +14 to +15
if version.parse(optuna.__version__) < version.parse("3.4.0"):
pytest.skip("Study.metrics_name is introduced at v3.4.0", allow_module_level=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@c-bata c-bata merged commit 825ff6e into optuna:main Jan 25, 2024
15 checks passed
@keisuke-umezawa keisuke-umezawa deleted the fix/run-unittest-with-appropriate-optuna-version branch January 25, 2024 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants