Unit testing Python code using Pytest + GitHub Actions

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 22

  • @abdocharrade1811
    @abdocharrade1811 Месяц назад

    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  Месяц назад

      Thanks man, I appreciate it!

  • @skywalker4279
    @skywalker4279 11 месяцев назад

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

    • @Carberra
      @Carberra  11 месяцев назад

      Funnily enough, I do! ruclips.net/video/4RuGK3w6Mbs/видео.htmlsi=bBqQtha_PiDiU7M_

  • @pastnowisaac7997
    @pastnowisaac7997 3 месяца назад

    Simple and good, thanks!

  • @fish42
    @fish42 7 месяцев назад

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

    • @Carberra
      @Carberra  7 месяцев назад +1

      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.

  • @sharjeel_mazhar
    @sharjeel_mazhar 8 месяцев назад

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

    • @Carberra
      @Carberra  8 месяцев назад

      It's an extension, but I don't think the free version has that feature anymore.

    • @sharjeel_mazhar
      @sharjeel_mazhar 8 месяцев назад

      @@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  7 месяцев назад

      RUclips 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.

  • @shanmugamudhaya7726
    @shanmugamudhaya7726 Год назад

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

    • @Carberra
      @Carberra  Год назад +1

      Only if you set it as a pre-commit hook.

    • @sharjeel_mazhar
      @sharjeel_mazhar 8 месяцев назад

      @@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.

  • @ABDULRASHEED-e3h
    @ABDULRASHEED-e3h 11 месяцев назад

    Explained well. Thanks Bro 💕

  • @ronaldfungss
    @ronaldfungss Год назад

    Nice and neat. Thanks a lot!

  • @shankubisai1370
    @shankubisai1370 3 месяца назад

    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..!!

  • @tonibest7965
    @tonibest7965 Год назад +1

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

  • @kevinoudelet
    @kevinoudelet 7 месяцев назад +1

    thx

  • @HobbiesInterests
    @HobbiesInterests 7 месяцев назад

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

  • @markmccarthy1486
    @markmccarthy1486 Год назад +1

    "promo sm"

  • @temp911Luke
    @temp911Luke Год назад +2

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