Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kenarsa committed May 16, 2024
1 parent 893d5a2 commit e03ada0
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
32 changes: 32 additions & 0 deletions .github/workflows/python-codestyle.yml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 25 additions & 0 deletions .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
@@ -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 "**/*"
16 changes: 16 additions & 0 deletions res/.lint/spell-check/.cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"language": "en",
"dictionaries": [
"dict"
],
"dictionaryDefinitions": [
{
"name": "dict",
"path": "./dict.txt",
"addWords": true
}
],
"ignorePaths": [
"**/__pycache__/**"
]
}
Empty file added res/.lint/spell-check/dict.txt
Empty file.

0 comments on commit e03ada0

Please sign in to comment.