Added support for large strain in pyFANS #610
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run checks for markdown, links, and pre-commit | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - "*" | |
| jobs: | |
| check_md: | |
| name: Lint markdown files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Create markdownlint config | |
| run: | | |
| cat > .markdownlint.json << 'EOF' | |
| { | |
| "MD013": false, | |
| "MD033": false, | |
| "MD034": false, | |
| "MD041": false | |
| } | |
| EOF | |
| - name: Lint markdown files (markdownlint) | |
| uses: articulate/actions-markdownlint@v1 | |
| with: | |
| config: .markdownlint.json | |
| files: '.' | |
| check_links: | |
| name: Check links in markdown files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Create markdown-link-check config | |
| run: | | |
| cat > .markdown-link-check-config.json << 'EOF' | |
| { | |
| "aliveStatusCodes": [429, 200], | |
| "ignorePatterns": [ | |
| { | |
| "pattern": "*.html" | |
| } | |
| ] | |
| } | |
| EOF | |
| - name: Check links in markdown files (markdown-link-check) | |
| uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
| with: | |
| use-quiet-mode: 'yes' | |
| use-verbose-mode: 'no' | |
| config-file: '.markdown-link-check-config.json' | |
| precommit: | |
| name: pre-commit checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| check-latest: true | |
| - name: Install pre-commit | |
| run: pip install pre-commit | |
| - name: Run checks | |
| run: pre-commit run -a -v | |
| - name: Git status | |
| if: always() | |
| run: git status | |
| - name: Full diff | |
| if: always() | |
| run: git diff |