Fix linux_job_v2 after https://github.com/pytorch/test-infra/pull/6104 #9335
Workflow file for this run
This file contains 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: pre-commit | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
architecture: x64 | |
packages: | | |
ufmt==2.5.1 | |
black==24.2.0 | |
usort==1.0.8 | |
- name: Checkout Torchrec | |
uses: actions/checkout@v2 | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] |