PyTorch convenience features #1675
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: Lint | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| linters: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Install ClangFormat | |
| run: sudo apt-get install -y clang-format | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Install Python dependencies | |
| run: pip install black | |
| - name: Run lint | |
| run: bash tools/lint.sh dry | |
| spelling: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Download misspell | |
| run: | | |
| curl -L https://github.com/client9/misspell/releases/download/v0.3.4/misspell_0.3.4_linux_64bit.tar.gz -o /tmp/misspell_0.3.4_linux_64bit.tar.gz | |
| tar -xzf /tmp/misspell_0.3.4_linux_64bit.tar.gz -C . | |
| - name: Check spelling | |
| run: | | |
| ./misspell -error .github ark examples python scripts |