diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-03-31 17:52:29 +0100 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-03-31 17:52:29 +0100 |
commit | f019b89c0524b896d8f3b67e04e2ccd87a799822 (patch) | |
tree | cf41bed2237a396551e204b34fc105346d89c994 | |
parent | 1397cb90f46c54e3409b094e81baacfc9abea44b (diff) | |
download | sphinx-git-f019b89c0524b896d8f3b67e04e2ccd87a799822.tar.gz |
Run Ruff linting with a known-to-work version
This means that CI tests will only fail if the 'known good' version
fails. If the latest version of Ruff fails, perhaps due to new
checks, CI will not fail overall, but the failures from the latest
version will be reported.
-rw-r--r-- | .github/workflows/lint.yml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f397c6660..f7da8ede2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,11 +22,18 @@ jobs: uses: actions/setup-python@v4 with: python-version: 3 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install ruff==0.0.259 + - name: Install pip + run: python -m pip install --upgrade pip + + - name: Install known good Ruff + run: python -m pip install ruff==0.0.260 + - name: Lint with known good Ruff + run: ruff . --diff --format github + + - name: Install latest Ruff + run: python -m pip install --upgrade ruff - name: Lint with Ruff + continue-on-error: true run: ruff . --diff --format github flake8: |