Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Configuration related to self-hosted runner.
self-hosted-runner:
# Labels of self-hosted runner in array of strings.
labels:
- spread-installed
# Architectures
- amd64
- arm64
- ppc64el
- riscv64
- s390x
# Ubuntu releases
- focal
- jammy
- noble
- resolute
# Sizes
- medium
- large
- xlarge
- 2xlarge
- 2xlarge-extra
# Additional possible labels
- edge
- tiobe
- large-tiobe
- 2xlarge-tiobe
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ include common.mk
format: format-ruff format-codespell format-prettier format-pre-commit ## Run all automatic formatters

.PHONY: lint
lint: lint-ruff lint-ty lint-codespell lint-mypy lint-prettier lint-pyright lint-shellcheck lint-docs lint-twine lint-uv-lockfile ## Run all linters
lint: lint-ruff lint-ty lint-codespell lint-mypy lint-prettier lint-pyright lint-shellcheck lint-docs lint-twine lint-uv-lockfile lint-actions ## Run all linters

.PHONY: pack
pack: pack-pip ## Build all packages
Expand Down
23 changes: 22 additions & 1 deletion common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ setup-lint: _setup-lint ##- Set up a linting-only environment
uv sync $(UV_LINT_GROUPS)

.PHONY: _setup-lint
_setup-lint: install-uv install-shellcheck install-pyright install-lint-build-deps
_setup-lint: install-uv install-shellcheck install-pyright install-lint-build-deps install-actionlint

.PHONY: setup-tests
setup-tests: _setup-tests ##- Set up a testing environment without linters
Expand Down Expand Up @@ -200,6 +200,16 @@ ifneq ($(CI),)
@echo ::endgroup::
endif

.PHONY: lint-actions
lint-actions: install-actionlint ##- Lint GitHub actions with actionlint
ifneq ($(CI),)
@echo ::group::$@
endif
actionlint
ifneq ($(CI),)
@echo ::endgroup::
endif

.PHONY: lint-docs
lint-docs: ##- Lint the documentation
ifneq ($(CI),)
Expand Down Expand Up @@ -285,6 +295,17 @@ else
curl -LsSf https://astral.sh/uv/install.sh | sh
endif

.PHONY: install-actionlint
install-actionlint:
ifneq ($(shell which actionlint),)
else ifneq ($(shell which snap),)
sudo snap install actionlint
else ifneq ($(shell which brew),)
brew install actionlint
else
$(warning Actionlint not installed. Please install it yourself.)
endif

.PHONY: install-codespell
install-codespell:
ifneq ($(shell which codespell),)
Expand Down