apify / apify-docs

This project is the home of Apify's documentation.
https://docs.apify.com
Apache License 2.0
29 stars 76 forks source link

Test Python course code examples #1243

Open honzajavorek opened 1 month ago

honzajavorek commented 1 month ago

As the Python course grows, it would be nice to have a way to test the code examples.

In this issue, I'd like to cover testing of regular examples which are part of the lesson. There are also exercises and I expect them to be a different beast. If we do tackle them both, then fine, but if exercises are hard to tackle, I'd focus mainly on the rest.

Also I think that regular examples should be tested under all PRs, while real-world exercises should be tested only nightly, as a separate thing (similar to Lychee).

I'm keen to implement this, but at the same time I don't want to just randomly bomb something to your infra, so I'll appreciate any kind of guidance. I suppose you were thinking about testing code examples before, or maybe it's already implemented, just not yet for Python.

Challenges

I didn't do any research yet, just filing this issue for the record.

honzajavorek commented 1 month ago

Interesting finds: