strawberry-graphql / strawberry

A GraphQL library for Python that leverages type annotations 🍓
https://strawberry.rocks
MIT License
3.92k stars 516 forks source link

Add action to test code snippets in documentation #1295

Open patrick91 opened 2 years ago

patrick91 commented 2 years ago

As suggested here we should allow to have code blocks that can run as is, to make it easier to check them we should have github action that runs them.

Not sure if we should check the output of the snippets, I think for now we can just check if they run as python scripts :)

Upvote & Fund

Fund with Polar

patrick91 commented 2 years ago

This might be a tool we could use https://github.com/anko/txm

DoctorJohn commented 5 months ago

We have a PR for this :) #3394

Linking it so this issue can eventually be closed