Skip to content
Learning pathBeginner

Git, tests and delivery

The everyday safety net of a software project: undo mistakes in Git, get out of the three common Git problems, write tests with pytest and run them on every pull request.

By Grokem Editorial

  • 4lessons
  • ~43 minin total
  • Beginnerlevel
  • 3topics

Outcomes

What you will be able to do

  • Three ways to take back work in Git, and the one question that picks between them: has the commit already been shared?

  • The three messages that stop most people: what 'detached HEAD', 'fetch first' and 'CONFLICT' mean, and the exact commands that get you out of each.

  • Test a small function, run the tests, read a failure, and cover many cases with one parametrized test. Install pytest, write six lines, run one command.

  • One YAML file turns your test suite into a check that runs on every push and pull request, on several Python versions, with dependency caching.

Covered

Topics and formats in this path

  • Version Control
  • Unit Testing
  • CI/CD
  • How-to
  • Troubleshooting
  • Tutorial

Learning plan

4 lessons, in order

Each lesson is short enough for one sitting and ends by pointing to the next.

  1. How-to

    Unit TestingDoneStarted

    Write your first unit test with pytest

    Test a small function, run the tests, read a failure, and cover many cases with one parametrized test. Install pytest, write six lines, run one command.

    Grokem EditorialBeginner15 min

Questions

Before you start

Who is this for?
The everyday safety net of a software project: undo mistakes in Git, get out of the three common Git problems, write tests with pytest and run them on every pull request. It is written for beginner readers.
How long does it take?
About 43 minutes of reading and doing across 4 lessons. Each lesson shows its own time, so you can do one at a sitting.
Do I need an account?
No. Everything here is free to read. An account is only needed to ask or answer a question in the community.
What if I get stuck on a lesson?
Ask in the community: say which lesson, what you tried and what happened. Every lesson also shows when it was last verified.

Ready when you are

Open the first lesson now: nothing to install, nothing to sign up for.

Choose what we may use. You can change this at any time with “Privacy choices” at the foot of every page. Details are in the Cookie policy and the Privacy policy.

Strictly necessary

Remembers your theme, the lessons you marked as done and this choice. It stays on your device, tracks nothing and cannot be switched off.

Always on
What exactly is collected, and why

Grokem’s own counts

Collects
The pages you open and how long you stay, how far you scroll, where you came from, your device type, browser, screen size, language and time zone. Your IP address is turned into a code that changes every day; it is never stored as it is.
Why
To see how long lessons are read and where readers leave. Not shared with anyone.
Stored
A random visitor ID, a visit ID and the time of your last page view in your browser’s storage (gr_vid, gr_sid, gr_last). No name or email is attached.