-
Notifications
You must be signed in to change notification settings - Fork 4
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
integrate smarteole example into ci #45
Conversation
Uses GitHub LFS
6ba621d
to
1fa3ccf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good 👍
fc2f1bb
to
d7a2f96
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you!
@@ -44,6 +44,8 @@ Use `poe all` to run all required pre-push commands (make sure the virtual envir | |||
## Running tests | |||
Install dev dependencies and use `poe test` to run unit tests (make sure the virtual environment is activated) | |||
|
|||
For convenience when developing locally, run `poe test-fast` to avoid running the tests marked as slow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, thanks for adding this!
) | ||
smarteole_data = SmarteoleData(scada_df=scada_df, metadata_df=metadata_df, toggle_df=toggle_df) | ||
|
||
main_smarteole_analysis( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This calls assert_frame_equal
internally. Seems fine to me. Maybe worth bubbling up a boolean output so an explicit assert is shown in the test, but I'm not sure if that's an improvement.
About the change
The
examples/smarteole_example.py
is an essential test to ensurewind-up
gets the intended 'correct' answers. Before this PR, there was already acheck_results=True
argument that could be passed to theprint_smarteole_results
function in order to assert the results are as expected. This PR, integrates this essential test into thepytest
test suite ofwind-up
. This also means that the smarteole example will be run in github actions, which removes the need to manually runexamples/smarteole_example.py
that has been done historically when checking PRs.Related issue
Closes #21
Notes
poe
task,test-fast
, that avoids tests marked as slow (currently only smarteole).