From fad3021dbe5ad9cc83dceb12d8b87c1fcff54ba9 Mon Sep 17 00:00:00 2001 From: Khusro Sakhi <149171453+Khusro-S@users.noreply.github.com> Date: Thu, 26 Dec 2024 13:20:00 +0300 Subject: [PATCH] Update ci-checks.yml --- .github/workflows/ci-checks.yml | 46 ++++++++++++++------------------- 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci-checks.yml b/.github/workflows/ci-checks.yml index 1fa7c27f3..d56775453 100644 --- a/.github/workflows/ci-checks.yml +++ b/.github/workflows/ci-checks.yml @@ -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/action@v2.2.3 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ls-lint/action@v2.2.3 md_formatting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: nosborn/github-action-markdown-cli@v3.3.0 - with: - files: . - config_file: .markdownlint.yml + - uses: actions/checkout@v4 + - uses: nosborn/github-action-markdown-cli@v3.3.0 + with: + files: . + config_file: .markdownlint.yml py_formatting: runs-on: ubuntu-latest @@ -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