Unit testing Python code using Pytest + GitHub Actions

  Рет қаралды 12,537

Carberra

Carberra

Күн бұрын

Пікірлер
@abdocharrade1811
@abdocharrade1811 4 ай бұрын
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
@Carberra
@Carberra 4 ай бұрын
Thanks man, I appreciate it!
@sharjeel_mazhar
@sharjeel_mazhar 10 ай бұрын
how did you get that sourcery code metrics pop up at time 9:17
@Carberra
@Carberra 10 ай бұрын
It's an extension, but I don't think the free version has that feature anymore.
@sharjeel_mazhar
@sharjeel_mazhar 10 ай бұрын
@@Carberra can you tell me it's name? And by the way, your tutorial really saved a lot of my time. I used ChatGPT to make pytest and other yaml workflow and it really backfired. You are a savior!
@Carberra
@Carberra 10 ай бұрын
KZbin didn't notify me of this -- glad I could help! The extension is called Sourcery as far as I remember, but I don't think I have it enabled anymore. Maybe the code quality stuff still works.
@pastnowisaac7997
@pastnowisaac7997 5 ай бұрын
Simple and good, thanks!
@fish42
@fish42 10 ай бұрын
How did you decide which Python versions to include in your testing?
@Carberra
@Carberra 10 ай бұрын
The ones I used here were the ones officially supported by Python at the time. 3.7 has since reached end of life, so you perhaps don't need to support that anymore, but you'd just include any versions here you support in your project.
@ronaldfungss
@ronaldfungss Жыл бұрын
Nice and neat. Thanks a lot!
@ABDULRASHEED-e3h
@ABDULRASHEED-e3h Жыл бұрын
Explained well. Thanks Bro 💕
@skywalker4279
@skywalker4279 Жыл бұрын
Beautiful terminal interface. Is that ohmyzsh? Do you have a video on how you setup your shell?
@Carberra
@Carberra Жыл бұрын
Funnily enough, I do! kzbin.info/www/bejne/aoPYeH5prJuAmNUsi=bBqQtha_PiDiU7M_
@shanmugamudhaya7726
@shanmugamudhaya7726 Жыл бұрын
what happens if you fail? does it prevent you from pushing
@Carberra
@Carberra Жыл бұрын
Only if you set it as a pre-commit hook.
@sharjeel_mazhar
@sharjeel_mazhar 10 ай бұрын
@@Carberra how to do that? lets say if i want to make sure that my python code is only pushed to the main/master branch if it passes the tests. Otherwise it shouldn't push.
@shankubisai1370
@shankubisai1370 5 ай бұрын
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..!!
@kevinoudelet
@kevinoudelet 10 ай бұрын
thx
@HobbiesInterests
@HobbiesInterests 10 ай бұрын
short and to the point. I can see why Jenkins and other ci tools will likely go extinct.
@markmccarthy1486
@markmccarthy1486 Жыл бұрын
"promo sm"
@temp911Luke
@temp911Luke Жыл бұрын
User: This app doesn work ! Coder: "It works on my computer"
@tonibest7965
@tonibest7965 Жыл бұрын
User: This app doesn work ! Coder: "It works on my computer"
Sourcery is an INCREDIBLE AI refactoring tool for Python
13:32
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН
-5+3은 뭔가요? 📚 #shorts
0:19
5 분 Tricks
Рет қаралды 13 МЛН
How To Write Unit Tests For Existing Python Code // Part 1 of 2
25:07
How To Setup Github Actions For CI/CD
20:27
ArjanCodes
Рет қаралды 33 М.
GitHub Actions (Branch Protection, Automated Testing) - Full Tutorial
29:56
Pytest Tutorial - How to Test Python Code
1:28:39
freeCodeCamp.org
Рет қаралды 232 М.
Jenkins Python Pipeline Tutorial
19:26
Vincent Stevenson
Рет қаралды 40 М.
Python's decimals SOLVE the floating point problem!
17:00
Carberra
Рет қаралды 2,6 М.
Professional Python Testing with Mocks
21:19
NeuralNine
Рет қаралды 65 М.
Automated testing using GitHub Actions... easier than I thought
24:29
How To Write Unit Tests in Python • Pytest Tutorial
35:34
pixegami
Рет қаралды 153 М.
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН