Skip to content

Commit

Permalink
Separate workflows for shell & python scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
oh2fih committed Dec 26, 2023
1 parent 8ae39ff commit f181b94
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Black (Python)
on:
push:
pull_request:
branches:
- main

jobs:
black:
name: Black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check Black formatting for Python scripts
uses: psf/black@stable
with:
options: --check --verbose
src: .
13 changes: 4 additions & 9 deletions .github/workflows/lint.yml → .github/workflows/shell.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
name: Lint
name: ShellCheck
on:
push:
pull_request:
branches:
- main

jobs:
lint:
name: Lint
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ShellCheck
- name: Run ShellCheck for shell scripts
uses: ludeeus/action-shellcheck@master
with:
severity: style
scandir: .
format: gcc
version: stable
- name: Black formatting (Python)
uses: psf/black@stable
with:
options: --check --verbose
src: .

0 comments on commit f181b94

Please sign in to comment.