-
Notifications
You must be signed in to change notification settings - Fork 0
✅ Enable pytest on github action #28
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
Conversation
|
I enabled pytest on GitHub Actions, and now it's working for 3.11-3.13 versions, but some errors raised for 3.9 and 3.10. When you are back, please take a look at this @enryH |
Very subtle: Turns out the keys in With the pip package {<EngineType.PLOTLY: 'PLOTLY'>: {<PlotType.SCATTER: 'SCATTER'>: <function vuecore.engines.plotly.scatter.build(data: pandas.core.frame.DataFrame, config: vuecore.schemas.basic.scatter.ScatterConfig) -> plotly.graph_objs._figure.Figure>,
<PlotType.LINE: 'LINE'>: <function vuecore.engines.plotly.line.build(data: pandas.core.frame.DataFrame, config: vuecore.schemas.basic.line.LineConfig) -> plotly.graph_objs._figure.Figure>,
<PlotType.BAR: 'BAR'>: <function vuecore.engines.plotly.bar.build(data: pandas.core.frame.DataFrame, config: vuecore.schemas.basic.bar.BarConfig) -> plotly.graph_objs._figure.Figure>,
<PlotType.BOX: 'BOX'>: <function vuecore.engines.plotly.box.build(data: pandas.core.frame.DataFrame, config: vuecore.schemas.basic.box.BoxConfig) -> plotly.graph_objs._figure.Figure>}}and with the built-in module for later Python version: {<EngineType.PLOTLY: 'plotly'>: {<PlotType.SCATTER: 'scatter'>: <function vuecore.engines.plotly.scatter.build(data: pandas.core.frame.DataFrame, config: vuecore.schemas.basic.scatter.ScatterConfig) -> plotly.graph_objs._figure.Figure>,
<PlotType.LINE: 'line'>: <function vuecore.engines.plotly.line.build(data: pandas.core.frame.DataFrame, config: vuecore.schemas.basic.line.LineConfig) -> plotly.graph_objs._figure.Figure>,
<PlotType.BAR: 'bar'>: <function vuecore.engines.plotly.bar.build(data: pandas.core.frame.DataFrame, config: vuecore.schemas.basic.bar.BarConfig) -> plotly.graph_objs._figure.Figure>,
<PlotType.BOX: 'box'>: <function vuecore.engines.plotly.box.build(data: pandas.core.frame.DataFrame, config: vuecore.schemas.basic.box.BoxConfig) -> plotly.graph_objs._figure.Figure>}}Looking at how you use it, it should not matter... but somehow the key entry is not working as expected. And it seems to work: import vuecore
import vuecore.engines.registry
k_engine = vuecore.engines.registry.EngineType['PLOTLY']
k_plot = vuecore.engines.registry.PlotType['BAR']
vuecore.engines.registry.PLOT_BUILDERS[k_engine][k_plot] |
|
So I see the issue now... you try to retrieve the function using the string |
No description provided.