Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZTD — GitHub Actions Demo

Teaching repository for GitHub Actions.

A tiny Python calculator wired up with the full set of workflow constructs,

What's here

File Demonstrates
app/calculator.py, tests/ the app under test (pytest)
.github/workflows/ci.yml events (push/pull_request/workflow_dispatch), needs: ordering, matrix across Python versions, pip caching, artifacts
.github/workflows/reusable-build.yml a reusable workflow (workflow_call) with an input
.github/workflows/caller.yml calling the reusable workflow at the job level

Run locally

pip install -r requirements.txt
flake8 app tests --max-line-length=100
pytest -v

Jenkins → GitHub Actions

This repo is the GitHub Actions counterpart to the Week-5 Jenkins labs. Mental map:

Jenkins GitHub Actions
Jenkinsfile .github/workflows/*.yml
Pipeline Workflow
stage job (parallel by default)
step step
Agent / node Runner
triggers { } on:
agent { label } runs-on:
Plugin Action (Marketplace)
Shared library Reusable workflow
Credentials store Secrets
environment { } env:

About

ZTD Phase 3 Week 6 — GitHub Actions teaching demo (CI, matrix, caching, artifacts, reusable workflows)

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages