From the course: Learning GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Linting and unit tests - GitHub Tutorial
From the course: Learning GitHub Actions
Linting and unit tests
- [Instructor] In the first stage of our CI/CD pipeline we handle linting and unit tests. With linting we can enforce coding standards like naming conventions, comments and formatting. It can also improve code quality by detecting dangerous constructs like race conditions, unused libraries or typos and variable names. Essentially linting helps us catch errors and potential problems early in the design cycle when they're easy to debug and fix. Unit tests are often the first tests that are run against the project. These tests check code functionality at the component level making them useful for testing functions before they're integrated and because they're run at a low level unit tests can expose problems closer to where they originated and typically unit tests are fast running. This means we can run them along with our other built steps without slowing things down. Let's take a look at how we've…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Plan your CI/CD pipeline1m 53s
-
(Locked)
Linting and unit tests2m 7s
-
(Locked)
Building and managing artifacts3m 4s
-
(Locked)
Testing1m 44s
-
(Locked)
Deploying1m 38s
-
(Locked)
Add a workflow status badge1m 7s
-
(Locked)
Challenge: Develop a CI/CD pipeline for a Python script57s
-
(Locked)
Solution: Develop a CI/CD pipeline for a Python script7m 40s
-
(Locked)
-
-