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 on to 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
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; for simplified authentication with the
gh
command line interface, see this version of the git training)
The skills we’ll focus on:
- Making scripts exit correctly
- Building a CI/CD workflow of unlimited potential
- Understanding how job runners work (and get access to your clones)
- Protecting secret information while allowing jobs to run
HSF Software Training
This training module is part of the HSF Software Training Center, a series of training modules that serves HEP newcomers the software skills needed as they enter the field, and in parallel, instill best practices for writing software.