08/10, 2021

Github

If you don’t know github a small glossary

  • Repo (Repository): your own proyect
  • Push: save your changes (please do as often as possible)

Github Actions

  • Free (or paid) computing time in the three main OS (Linux, Mac, Windows)
  • Excellent for Continuous Integration
    • Run tests in externally instead of locally (quality control, and tests for reproducibility)
    • Coupled with continuous deployment (Update result of model prediction or dataset)
    • Really important when working in teams (to avoid conflicting changes)
  • This is how they look
  • Basic YAML, in a folder called /.github/workflows

How to start with one

  • usethis package use_github_action
  • Example `usethis::use_github_action(“render-rmarkdown”)
  • Other example workflows
  • It is a good idea to use the renv package

Github Actions (some uses)

  • Testing our scripts to make sure they work cross platform
  • Testing it so it works in the latest versions
  • Automated tests to test your new packages (hopefully they look like this)
  • Automated scrapping

Triggers for Actions

Runners (external)

  • AKA computers
  • Small computers
  • You can use 30 at the same time
  • Up to 6 hours per action (2000 free minutes per month)

Not all runners are made equal

  • Linux (Ubuntu 16.04 to 20.04, 1 minute per minute)
  • MacOS (Catalina 10.15 and Big Sur 11, 10 minutes per minute)
  • Windows (Windows Servers 2016, 2019, and 2022, 2 minutes per minute)

Your own runners

Additional resoruces

Questions