AI Hints
Home›CI/CD with GitHub Actions Tutorial›Your First Pipeline and Course Complete
CI/CD with GitHub Actions · Lesson 136 of 138

Your First Real Pipeline

Start from zero.

⏱ 2 min read▶ Video at 2:39:15🎓 Free
Watch this lesson in the CI/CD with GitHub Actions courseWatch on YouTube ↗Full CI/CD with GitHub Actions course

Let's finish with the exact steps for adding CI to any project. From an empty folder, to a checked workflow, ready to push.

Your First Real Pipeline
From the video: Your First Real Pipeline
  • Any project
  • Empty folder to workflow
  • Ready to push

The steps

Make sure the tests run locally first, with one command. Create the dot github slash workflows folder. Write a small workflow, that installs and tests. Check it with actionlint. Then push, open the Actions tab, and watch it go green.

  1. Tests pass locally
  2. Create the folder
  3. Write the workflow
  4. actionlint
  5. Push and watch
The steps
From the video: The steps

Doing it

Pytest passes locally. We create the folder, and write ci dot y m l, the same small workflow from the start of the course. Actionlint finds no problems. And our helper runs it, and the job succeeds. Now it's ready to commit and push.

Terminal
pytest -q | tail -1
3 passed in 0.01s
mkdir -p .github/workflows && cp ~/ci.yml .github/workflows/ci.yml
actionlint && echo "no problems found"
no problems found
run-steps .github/workflows/ci.yml | tail -1
  Job succeeded

Summary

Tests locally, a small workflow, actionlint, and push. That's all it takes to start. Next, a review of the whole course.

Key takeaways
  • Local tests first
  • Small workflow
  • actionlint, push
Next up: Course Review — everything we covered