Run CI actions on ubuntu 24.04 since ubuntu 20.04 is being deprecated on 04/01/2025 #3513
Workflow file for this run
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: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.10" | |
| architecture: x64 | |
| - name: Checkout TorchX | |
| uses: actions/checkout@v2 | |
| - name: Install Dependencies | |
| run: | | |
| set -eux | |
| grep -E "(lintrunner)" < dev-requirements.txt > /tmp/lint-requirements.txt | |
| pip install -r /tmp/lint-requirements.txt | |
| lintrunner init | |
| - name: Run Lint | |
| run: | | |
| git config --global url."https://${{ secrets.GITHUB_TOKEN }}:[email protected]/".insteadOf "https://github.com/" | |
| lintrunner --skip PYRE --force-color --all-files |