Skip to content

Merge pull request #12 from MIT-Emerging-Talent/Group-norms #53

Merge pull request #12 from MIT-Emerging-Talent/Group-norms

Merge pull request #12 from MIT-Emerging-Talent/Group-norms #53

Workflow file for this run

name: ET CI Checks
on: [push, pull_request, workflow_dispatch]
jobs:
ls_linting:
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
py_formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Python - Check Formatting
uses: astral-sh/ruff-action@v1
with:
args: "format --check"
py_linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# passing ruff linting is required
- name: Python - Check Linting - ruff
uses: astral-sh/ruff-action@v1
# passing pylint is not required - discuss errors in code review
# adapted from https://github.com/davidslusser/actions_python_pylint/tree/main
- name: python version
run: python --version
shell: bash
if: always()
- name: install pylint
run: |
python - m pip install --upgrade pip
pip install pylint
shell: bash
- 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

Check failure on line 54 in .github/workflows/ci-checks.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-checks.yml

Invalid workflow file

You have an error in your yaml syntax on line 54
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