From 51a1a30b6dad5cab945d92d7a0fccd0ae86786ef Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Wed, 31 Jan 2024 18:28:23 +0000 Subject: [PATCH] Lint GitHub Actions workflows using actionlint --- .github/workflows/release.yml | 2 +- Makefile | 1 + lint.mk | 4 ++++ pyproject.toml | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3f8b0002a..f5e9d9793 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,7 +76,7 @@ jobs: run: | # Checkout the latest tag - the one we just created. git fetch --tags - git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) + git checkout "$(git describe --tags "$(git rev-list --tags --max-count=1)")" python -m pip install build python -m build --sdist --wheel --outdir dist/ . diff --git a/Makefile b/Makefile index 320a0bec8..1530f4eb7 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ SPHINXOPTS := -W .PHONY: lint lint: \ + actionlint \ check-manifest \ doc8 \ linkcheck \ diff --git a/lint.mk b/lint.mk index f837b0069..3127f8a84 100644 --- a/lint.mk +++ b/lint.mk @@ -2,6 +2,10 @@ SHELL := /bin/bash -euxo pipefail +.PHONY: actionlint +actionlint: + actionlint + .PHONY: mypy mypy: mypy . diff --git a/pyproject.toml b/pyproject.toml index b1461e8e3..8070eb8ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -224,6 +224,7 @@ dependencies = [ ] [project.optional-dependencies] dev = [ + "actionlint-py==1.6.26.11", "check-manifest==0.49", "doc8==1.1.1", "dodgy==0.2.1",