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

Adds sketch of how to use pytest #442

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Adds sketch of how to use pytest #442

wants to merge 8 commits into from

Conversation

skrawcz
Copy link
Contributor

@skrawcz skrawcz commented Nov 30, 2024

This is a WIP. This shows how
one might log things they don't
want to fail on to a results_bag
and then access them in a dataframe...

Changes

How I tested this

Notes

Checklist

  • PR has an informative and human-readable title (this will be pulled into the release notes)
  • Changes are limited to a single goal (no scope creep)
  • Code passed the pre-commit check & code is left cleaner/nicer than when first encountered.
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future TODOs are captured in comments
  • Project documentation has been updated if adding/changing functionality.

Copy link

github-actions bot commented Nov 30, 2024

A preview of 01c7e7c is uploaded and can be seen here:

https://burr.dagworks.io/pull/442

Changes may take a few minutes to propagate. Since this is a preview of production, content with draft: true will not be rendered. The source is here: https://github.com/DAGWorks-Inc/burr/tree/gh-pages/pull/442/

This is a WIP. This shows how
one might log things they don't
want to fail on to a results_bag
and then access them in a dataframe...
This shows how to use pytest to test an action.

TODO:
 - how to use burr fixture
 - how to test agent and use tracker
@skrawcz skrawcz force-pushed the add_pytest_example branch from 3ced84f to a792759 Compare December 4, 2024 07:21
@skrawcz
Copy link
Contributor Author

skrawcz commented Dec 4, 2024

TODO: show this:

E.g. run pytest, get dataframe of results (and do something with it), but also see traces for each of those runs in the Burr UI.

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.

1 participant