mirror of
https://github.com/getsolus/packages.git
synced 2025-04-25 20:30:37 +03:00
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
---
|
|
name: Script Lint
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'common/**'
|
|
- packages/u/usysconf-epoch/files/epoch.sh
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
Python:
|
|
name: Python Linting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out source repository
|
|
uses: actions/checkout@v4
|
|
- name: Set up Python environment
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.10"
|
|
- name: flake8 Lint
|
|
uses: py-actions/flake8@v2
|
|
with:
|
|
path: >-
|
|
common/CI
|
|
common/Hooks
|
|
common/Scripts
|
|
- name: mypy lint
|
|
uses: jpetrucciani/mypy-check@master
|
|
with:
|
|
path: common/CI common/Hooks common/Scripts/worklog.py
|
|
python_version: "3.10"
|
|
requirements: ruamel.yaml types-PyYAML types-Markdown
|
|
ShellCheck:
|
|
name: ShellCheck
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Run ShellCheck
|
|
uses: ludeeus/action-shellcheck@master
|
|
with:
|
|
scandir: common
|
|
check_together: 'yes'
|
|
ignore_paths: >-
|
|
common/Legacy/**
|
|
common/Scripts/helpers.zsh
|
|
common/Scripts/sync_licenses.sh
|
|
common/Scripts/new-package.sh
|
|
common/Scripts/find-old.sh
|
|
common/Scripts/rebuild-template-script.sh
|
|
common/Scripts/buildserver-notification.sh
|
|
common/Scripts/update_stateless.sh
|