summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-12-31 08:42:34 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-12-31 08:42:34 -0500
commitc2773105682ee01b5ebfe5d29e86a9634d02b053 (patch)
tree9fdc2774f58c8294ea9c6c67127e7a82c8814d72
parent29546eef905685c693a160a3ac717a666b398b5c (diff)
downloadpython-coveragepy-git-c2773105682ee01b5ebfe5d29e86a9634d02b053.tar.gz
build: a make target to cog the workflows
-rw-r--r--.github/workflows/kit.yml4
-rw-r--r--Makefile3
2 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml
index 16e476ed..9bc8e192 100644
--- a/.github/workflows/kit.yml
+++ b/.github/workflows/kit.yml
@@ -38,6 +38,10 @@ jobs:
include:
# To change the matrix, edit the choices, then process this file with cog:
#
+ # $ make workflows
+ #
+ # which runs:
+ #
# $ python -m pip install cogapp
# $ python -m cogapp -crP .github/workflows/kit.yml
#
diff --git a/Makefile b/Makefile
index 53d2f051..d968dd51 100644
--- a/Makefile
+++ b/Makefile
@@ -77,6 +77,9 @@ upgrade: ## update the *.pip files with the latest packages satisfying *.in
$(PIP_COMPILE) -o requirements/light-threads.pip requirements/light-threads.in
$(PIP_COMPILE) -o doc/requirements.pip doc/requirements.in
+workflows: ## Run cog on the workflows to keep them up-to-date.
+ python -m cogapp -crP .github/workflows/*.yml
+
# Kitting
kit: ## Make the source distribution.