Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Python Test Automation with Pytest and GitHub Actions CI/CD
Python Test Automation with Pytest and GitHub Actions CI/CD

Python Test Automation with Pytest and GitHub Actions CI/CD: Build reliable Python tests and automate quality checks in CI/CD pipelines

Arrow left icon
Profile Icon Artem Istranin
Arrow right icon
€78.99
Video Aug 2026 11hrs 23mins 1st Edition
Video
€78.99
Video + Subscription
€21.99 Monthly
Arrow left icon
Profile Icon Artem Istranin
Arrow right icon
€78.99
Video Aug 2026 11hrs 23mins 1st Edition
Video
€78.99
Video + Subscription
€21.99 Monthly
Video
€78.99
Video + Subscription
€21.99 Monthly

What do you get with a video?

Product feature icon Download this video in MP4 format
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Key benefits

  • A complete pytest path from testing fundamentals to advanced automation and CI/CD workflows
  • Real-world Python examples connecting unit, integration, API, and coverage practices clearly
  • Practical progression through fixtures, mocking, parametrization, and GitHub Actions automation

Description

Reliable automated testing helps Python teams change growing codebases with confidence, reduce manual checks, and catch regressions before deployment. A practical strategy also supports cleaner design, safer refactoring, and consistent quality across development workflows. The learning path begins with testing fundamentals, pytest setup, test discovery, execution, and clear assertions. It advances through test classes, exception testing, Given-When-Then structure, fixtures, setup and teardown, conftest.py, output capture, mocking, and parametrization. Advanced topics include markers, configuration, code coverage, Hypothesis, Faker, testing levels, API testing, and pragmatic TDD and BDD. The final stage connects pytest to GitHub Actions for matrix testing, parallel execution, and coverage gates. Practical examples and coding challenges show how the techniques work in realistic Python projects. Learners gain the ability to create maintainable unit, integration, and API tests, isolate dependencies, debug failures, expand coverage efficiently, and run automated checks on every code change. By the end of this course, you will be able to build scalable Python test systems and integrate dependable testing into modern CI/CD workflows.

Who is this book for?

Designed for junior-to-senior Python developers, backend engineers, API developers, and engineers working with CI/CD pipelines who want stronger automated testing skills and more reliable code. Basic Python knowledge, including the ability to write functions and classes, is expected; prior experience with pytest or another testing framework is not required.

What you will learn

  • Write unit, integration, and API tests with pytest
  • Structure reusable fixtures and controlled test setup
  • Parametrize tests across inputs, edge cases, and scenarios
  • Mock dependencies and diagnose failures efficiently
  • Measure coverage and organize scalable testing strategies
  • Automate test execution with GitHub Actions CI/CD

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Last updated date : Aug 11, 2026
Publication date : Aug 07, 2026
Length: 11hrs 23mins
Edition : 1st
Language : English
ISBN-13 : 9781808767937
Category :
Languages :
Tools :

What do you get with a video?

Product feature icon Download this video in MP4 format
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Last updated date : Aug 11, 2026
Publication date : Aug 07, 2026
Length: 11hrs 23mins
Edition : 1st
Language : English
ISBN-13 : 9781808767937
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How can I download a video package for offline viewing? Chevron down icon Chevron up icon
  1. Login to your account at Packtpub.com.
  2. Click on "My Account" and then click on the "My Videos" tab to access your videos.
  3. Click on the "Download Now" link to start your video download.
How can I extract my video file? Chevron down icon Chevron up icon

All modern operating systems ship with ZIP file extraction built in. If you'd prefer to use a dedicated compression application, we've tested WinRAR / 7-Zip for Windows, Zipeg / iZip / UnRarX for Mac and 7-Zip / PeaZip for Linux. These applications support all extension files.

How can I get help and support around my video package? Chevron down icon Chevron up icon

If your video course doesn't give you what you were expecting, either because of functionality problems or because the content isn't up to scratch, please mail customercare@packt.com with details of the problem. In addition, so that we can best provide the support you need, please include the following information for our support team.

  1. Video
  2. Format watched (HTML, MP4, streaming)
  3. Chapter or section that issue relates to (if relevant)
  4. System being played on
  5. Browser used (if relevant)
  6. Details of support
Why can’t I download my video package? Chevron down icon Chevron up icon

In the even that you are having issues downloading your video package then please follow these instructions:

  1. Disable all your browser plugins and extensions: Some security and download manager extensions can cause issues during the download.
  2. Download the video course using a different browser: We've tested downloads operate correctly in current versions of Chrome, Firefox, Internet Explorer, and Safari.
Modal Close icon
Modal Close icon