Get startedGet started for free

Running Python code in GitHub Actions

In this exercise, you will practice writing GitHub Actions workflow that runs a Python script. The workflow gets triggered by opening a pull request against the main branch.

Upon completing this exercise, you will be adept at crafting GitHub Actions workflows for Python scripts. You will grasp the concept of triggering workflows with pull requests, configuring the runner environment using actions, and executing Python scripts seamlessly. This foundational knowledge enables you to automate Python-related tasks within software development workflows using GitHub Actions.

NOTE: Use python3 instead of python to run Python scripts.

This exercise is part of the course

CI/CD for Machine Learning

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise