CI/CD with GitHub Actions#
GitHub is a distributed git platform used for code hosting and collaboration. It can also be used to automatically run the hosted code on GitHub’s servers via GitHub Actions. Actions are workflow automation scripts. We’ll learn how to develop workflows that make our code robust to errors, preserved, and reproducible.
The aim of this module is to:
explore what it means to build a CI/CD workflow
guide you through building a CI/CD workflow
The HSF Training CI/CD Lessons
This is a condensed version of the HSF Training CI/CD with GitHub for CompHEP 2026. The original lesson can be found here.
There is also a version of this lesson for GitLab CI/CD, which can be found here.
Prerequisites
This assumes that you’ll have some basic background with your command line, for example:
How to execute custom shell scripts (if you are not familiar with the shell, click here)
How to run python scripts (if you are not familiar with python, click here)
How to interact with remotes in git (if you are not familiar with git, click here, in particular the Remotes in GitHub episode)
How to authenticate to GitHub from the command line, either with SSH keys or with the
ghcommand line interface (see caching your GitHub credentials in git)