Unit testing Python code using Pytest + GitHub Actions

preview_player
Показать описание



Testing your code is essential, especially when it going to be used by the public. Testing it locally however is not enough, and setting up a CI pipeline can help identify and fix errors you may have missed. Pytest and GitHub Actions allow you to do just that, which will save you from endless compaints from the people who broken your application in less than 5 minutes. Because of course they did.



If you enjoy my content, consider supporting me on Patreon or becoming a member!

If you need help with anything, feel free to join the Discord server:

I get a lot of people asking, so here's my Visual Studio Code setup!



If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.

#python #coding #howto
Рекомендации по теме
Комментарии
Автор

Very cool video. Immediately subscribed the channel and liked your video. Totally forgot how satisfying it is to listen to a tutorial without thinking in parallel what tutor is saying... :D :D

abdocharrade
Автор

That was a great explanation. I can see that this a private repo. Could you please share the source code in a public repo.Thanks..!!

shankubisai
Автор

Beautiful terminal interface. Is that ohmyzsh? Do you have a video on how you setup your shell?

skywalker
Автор

User: This app doesn work !
Coder: "It works on my computer"

tonibest
Автор

How did you decide which Python versions to include in your testing?

fish
Автор

what happens if you fail? does it prevent you from pushing

shanmugamudhaya
Автор

how did you get that sourcery code metrics pop up at time 9:17

sharjeel_mazhar
Автор

short and to the point. I can see why Jenkins and other ci tools will likely go extinct.

HobbiesInterests
Автор

User: This app doesn work !
Coder: "It works on my computer"

tempLuke