mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-11-20 09:01:32 -08:00
73 lines
1.5 KiB
YAML
73 lines
1.5 KiB
YAML
# Copyright 2024-2025 New Vector Ltd
|
|
# Copyright 2025-2026 Element Creations Ltd
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
name: Scripts linting
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'maintenance/*'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
shellcheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Run ShellCheck
|
|
run: shellcheck scripts/*.sh
|
|
|
|
python:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: matrix-org/setup-python-poetry@5bbf6603c5c930615ec8a29f1b5d7d258d905aa4 # v2
|
|
with:
|
|
python-version: "3.x"
|
|
|
|
- name: Load poetry path
|
|
run: |
|
|
echo "$(poetry env info -p)/bin" >> "${GITHUB_PATH}"
|
|
|
|
- name: Run ruff check
|
|
run: |
|
|
ruff check
|
|
|
|
- name: Run ruff format
|
|
run: |
|
|
ruff format --check
|
|
|
|
- name: pytest scripts
|
|
run: |
|
|
pytest --version
|
|
pytest scripts
|
|
|
|
- name: mypy
|
|
run:
|
|
mypy tests
|
|
|
|
cspell:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: streetsidesoftware/cspell-action@9cd41bb518a24fefdafd9880cbab8f0ceba04d28 # v8
|