Skip to content

Commit

Permalink
Update ci-checks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Khusro-S authored Dec 26, 2024
1 parent 90c4bf5 commit fad3021
Showing 1 changed file with 20 additions and 26 deletions.
46 changes: 20 additions & 26 deletions .github/workflows/ci-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ on: [push, pull_request, workflow_dispatch]

jobs:
ls_linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ls-lint/[email protected]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ls-lint/[email protected]

md_formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nosborn/[email protected]
with:
files: .
config_file: .markdownlint.yml
- uses: actions/checkout@v4
- uses: nosborn/[email protected]
with:
files: .
config_file: .markdownlint.yml

py_formatting:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -50,20 +50,14 @@ jobs:
- name: Python - Check Linting - pylint
run: "pylint solutions tests || echo '::warning title=Pylint Error(s)::Discuss solutions and trade-offs in code review.'"
shell: bash
py_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for Non-Markdown Changes
run: |
if ! git diff --name-only HEAD^1 | grep -E -v '\.md$'; then
echo "Only Markdown files changed. Skipping tests."
exit 0
fi
shell: bash
- name: python version
run: python --version
shell: bash
- name: Python - Run Tests
run: python -m unittest
shell: bash

py_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: python version
run: python --version
shell: bash
- name: Python - Run Tests
run: python -m unittest
shell: bash

0 comments on commit fad3021

Please sign in to comment.