diff --git a/.github/scripts/lintrunner.sh b/.github/scripts/lintrunner.sh index 1ae27f062d2..847a6d63c41 100755 --- a/.github/scripts/lintrunner.sh +++ b/.github/scripts/lintrunner.sh @@ -2,7 +2,7 @@ set -ex # Use uv to speed up lintrunner init -python3 -m pip install uv==0.1.45 +python3 -m pip install uv==0.1.45 setuptools CACHE_DIRECTORY="/tmp/.lintbin" # Try to recover the cached binaries diff --git a/.github/workflows/lint-autoformat.yml b/.github/workflows/lint-autoformat.yml index 897534d2f21..b5d08f548c4 100644 --- a/.github/workflows/lint-autoformat.yml +++ b/.github/workflows/lint-autoformat.yml @@ -19,14 +19,13 @@ jobs: with: submodules: true fetch-depth: 0 - - name: Setup miniconda - uses: pytorch/test-infra/.github/actions/setup-miniconda@main - with: - python-version: "3.10" - name: Run lintrunner (nonretryable) continue-on-error: true # we can't run all files here because only changes around where the diff are shown in the PR UI run: | + set -ex + python3 -m venv /tmp/venv + source /tmp/venv/bin/activate export ADDITIONAL_LINTRUNNER_ARGS="format" bash .github/scripts/lintrunner.sh - name: Check for changes