Packt

Python Test Automation with Pytest and GitHub Actions CI/CD

Packt

Python Test Automation with Pytest and GitHub Actions CI/CD

Included with Coursera PlusLearn more

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

1 week to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

1 week to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Write unit, integration, and API tests with pytest

  • Create reusable fixtures and manage controlled test setup

  • Integrate automated tests with GitHub Actions for CI/CD

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

December 2026

Assessments

8 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

There are 7 modules in this course

This module introduces learners to the fundamentals of Python testing using pytest, covering setup, test discovery, execution, and debugging. It also explores real-world testing scenarios and best practices for reliable software development. By the end, learners will be equipped to implement testing workflows and understand the importance of test-driven and behavior-driven approaches.

What's included

12 videos1 assignment

This module explores advanced techniques for writing more effective and maintainable tests using pytest. Learners will gain skills in organizing test cases, improving test clarity, and implementing structured testing practices. The content includes practical examples and challenges to reinforce key testing strategies.

What's included

9 videos1 assignment

This module covers the fundamental concepts and practical applications of fixtures in testing, including setup, teardown, scoping, reuse, and integration with tools like conftest.py and monkeypatch. Learners will gain the ability to create and manage reusable test environments for improved test efficiency and reliability.

What's included

12 videos1 assignment

This module explores techniques for parametrizing tests and fixtures to improve code maintainability and test coverage. Learners will understand how to handle multiple scenarios efficiently and apply dynamic test generation. By the end, they will be able to implement reusable and scalable testing strategies.

What's included

8 videos1 assignment

This module explores advanced techniques for writing effective and maintainable tests using pytest. Learners will gain skills in mocking, patching, test configuration, and coverage analysis to improve test quality and reliability. It also covers strategies for managing test data and test levels to build robust testing frameworks.

What's included

17 videos1 assignment

This module covers the fundamentals of CI/CD automation, including setting up GitHub Actions workflows, implementing matrix testing, and optimizing test execution through parallelization. Learners will gain hands-on experience in building and managing automated testing pipelines to improve software reliability and efficiency.

What's included

7 videos1 assignment

This module provides a comprehensive review of the pytest and CI/CD workflow, helping learners reinforce their understanding of testing strategies and next steps for implementing these practices in real-world Python projects.

What's included

1 video2 assignments

Instructor

Packt - Course Instructors
Packt
2,690 Courses795,495 learners

Offered by

Packt

Why people choose Coursera for their career

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

What brings you to Coursera today?

Frequently asked questions