diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml new file mode 100644 index 0000000..14c1566 --- /dev/null +++ b/.github/workflows/link-check.yml @@ -0,0 +1,18 @@ +name: Check Markdown links + +on: + workflow_dispatch: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: gaurav-nelson/github-action-markdown-link-check@1.0.14 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' \ No newline at end of file diff --git a/.github/workflows/python-codestyle.yml b/.github/workflows/python-codestyle.yml new file mode 100644 index 0000000..c8db4fd --- /dev/null +++ b/.github/workflows/python-codestyle.yml @@ -0,0 +1,32 @@ +name: Python Codestyle + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - '.github/workflows/python-codestyle.yml' + - 'recipes/**/*.py' + pull_request: + branches: [ main ] + paths: + - '.github/workflows/python-codestyle.yml' + - 'recipes/**/*.py' + +jobs: + check-python-codestyle: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install dependencies + run: pip install flake8 pep8-naming + + - name: Check python codestyle + run: flake8 --ignore=F401,F403,F405 --max-line-length=120 binding/python demo/python diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml new file mode 100644 index 0000000..8655d9c --- /dev/null +++ b/.github/workflows/spell-check.yml @@ -0,0 +1,25 @@ +name: SpellCheck + +on: + workflow_dispatch: + push: + branches: [ main ] + pull_request: + branches: [ main, 'v[0-9]+.[0-9]+' ] + +jobs: + markdown: + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install CSpell + run: npm install -g cspell + + - name: Run CSpell + run: cspell --config res/.lint/spell-check/.cspell.json "**/*" diff --git a/res/.lint/spell-check/.cspell.json b/res/.lint/spell-check/.cspell.json new file mode 100644 index 0000000..08c067c --- /dev/null +++ b/res/.lint/spell-check/.cspell.json @@ -0,0 +1,16 @@ +{ + "language": "en", + "dictionaries": [ + "dict" + ], + "dictionaryDefinitions": [ + { + "name": "dict", + "path": "./dict.txt", + "addWords": true + } + ], + "ignorePaths": [ + "**/__pycache__/**" + ] +} \ No newline at end of file diff --git a/res/.lint/spell-check/dict.txt b/res/.lint/spell-check/dict.txt new file mode 100644 index 0000000..e69de29