Jelajahi Sumber

Changed .github/workflows/ci.yml

maziggy 1 bulan lalu
induk
melakukan
d29997fa24
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      .github/workflows/ci.yml

+ 4 - 1
.github/workflows/ci.yml

@@ -42,7 +42,10 @@ jobs:
           python-version: ${{ env.PYTHON_VERSION }}
           python-version: ${{ env.PYTHON_VERSION }}
 
 
       - name: Install ruff
       - name: Install ruff
-        run: pip install ruff
+        # Install the exact pin from requirements-dev.txt rather than the latest
+        # release, so CI and contributors run the same linter. `pip install ruff`
+        # silently drifted ahead of every local venv.
+        run: pip install "$(grep -E '^ruff==' requirements-dev.txt)"
 
 
       - name: Run ruff check
       - name: Run ruff check
         run: ruff check backend/
         run: ruff check backend/