From the course: Advanced GitHub Actions

Unlock the full course today

Join today to access over 24,200 courses taught by industry experts.

Challenge: Use a matrix strategy to test an application

Challenge: Use a matrix strategy to test an application - GitHub Tutorial

From the course: Advanced GitHub Actions

Challenge: Use a matrix strategy to test an application

(upbeat music) - [Instructor] It's time for a challenge. Let's use the following scenario to apply what you've learned about Matrix jobs. You're working with a data team that's developing a Python application to analyze survey results. They have an existing GitHub Actions workflow, but they want to make sure their application runs on Linux, Mac, and Windows, and is also compatible with recent versions of Python. All of the codes you need to get started is provided in the exercise files. To solve this challenge, you'll need to create a new repository, add the application files to the root of the repo, and then add the workflow file to the correct location in the repo. Once you have everything in place, you'll need to update the workflow to use a Matrix strategy. First, add two keys to the matrix, one for platform and one for version. Then update the runs-on configuration to use the Matrix value for the platform,…

Contents