Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Github Worflow #15

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/actions/install-colint/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
runs:
using: 'composite'
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10.12'

- name: Install colint from github repository
shell: bash
run: |
pip install --upgrade pip
pip install git+https://github.com/secomind/colint.git
74 changes: 74 additions & 0 deletions .github/workflows/self_lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Cobra Lint Checks

on: [pull_request, push]

jobs:
sort_libraries:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Colint
uses: ./.github/actions/install-colint

- name: Run Sort Libraries Check
run: |
colint sort-libraries ./ --check

code_format:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Colint
uses: ./.github/actions/install-colint

- name: Run Code Format Check
run: |
colint code-format ./ --check

grammar_check:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Colint
uses: ./.github/actions/install-colint

- name: Run Grammar Check
run: |
colint grammar-check ./ --check

newline_fix:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Colint
uses: ./.github/actions/install-colint

- name: Run Newline Fix Check
run: |
colint newline-fix ./ --check

clean_jupyter:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Colint
uses: ./.github/actions/install-colint

- name: Check Jupyter Notebooks Cleanliness
run: |
colint clean-jupyter ./ --check
Loading