Skip to content

tinybirdco/pytest-analytics-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Monitor CI pipeline metrics with Tinybird

This repo includes Tinybird resources - a datasource file and nine (9) pipe files - to calculate some typical CI pipeline metrics based on data created by the pytest-tinybird plugin. You can use these as examples in your CI analytics development.

How to use these files

These files are meant to be used in conjunction with the pytest-tinybird plugin. For more information, please read [this](link to blog post)

Follow these steps to make use of these files:

  1. Install the pytest-tinybird plugin in your pytest environment using the Python package installer pip.
  2. Create a free Tinybird account and set up a Workspace.
  3. Clone this repo and use the Tinybird CLI to push the files to your Workspace.
  4. Set three environment variables in your pytest environment:
  • TINYBIRD_URL: For example https://api.tinybird.co or https://api.us-east.tinybird.co depending on your Workspace region.
  • TINYBIRD_DATASOURCE: The name of your Data Source in Tinybird, e.g. test_reports in this repo.
  • TINYBIRD_TOKEN: A Tinybird Auth Token with DATASOURCE:WRITE permissions.
  1. Run your instance of pytest with the --report-to-tinybird option.
  2. Use your Tinybird APIs as you'd like!

About

Monitor critical CI metrics with Tinybird

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published