Skip to content

Merge pull request #9 from umicom-foundation/dependabot/github_action… #199

Merge pull request #9 from umicom-foundation/dependabot/github_action…

Merge pull request #9 from umicom-foundation/dependabot/github_action… #199

Workflow file for this run

name: Lint & Test
on:
push:
pull_request:
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Markdownlint
uses: DavidAnson/markdownlint-cli2-action@v20
with:
globs: "**/*.md !volumes/** !book/** !site/** !.github/ISSUE_TEMPLATE/** !.github/PULL_REQUEST_TEMPLATE.md"
# Markdown lint
- name: markdownlint
uses: DavidAnson/markdownlint-cli2-action@v17
with:
globs: "**/*.md !volumes/** !book/** !site/** !.github/ISSUE_TEMPLATE/** !.github/PULL_REQUEST_TEMPLATE.md"
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
# Use the stable major tag to avoid pinning a non-existent version
- name: Typos (spell check)
# Typos (spell-check)
uses: crate-ci/typos@v1
# Run pytest only if tests exist
- name: Setup Python
if: ${{ hashFiles('tests/**/*.py') != '' }}
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Run tests (if any)
if: ${{ hashFiles('tests/**/*.py') != '' }}
run: |
python -m pip install --upgrade pip
pip install pytest
pytest -q