aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/on_pull_request.yaml
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-05-17 20:18:56 +0000
committerGitHub <noreply@github.com>2023-05-17 20:18:56 +0000
commit04b4508a66de58c9f3a422fdcad4dd2ec3ad39ce (patch)
tree1cb30a63099a69f678d4901b495203b765a6df59 /.github/workflows/on_pull_request.yaml
parent7201d940a4fe664beb9662fadbeade4ee1d788f7 (diff)
parentb397f63e00bbfbe9087d80abb457aa9a593b181b (diff)
downloadstable-diffusion-webui-gfx803-04b4508a66de58c9f3a422fdcad4dd2ec3ad39ce.tar.gz
stable-diffusion-webui-gfx803-04b4508a66de58c9f3a422fdcad4dd2ec3ad39ce.tar.bz2
stable-diffusion-webui-gfx803-04b4508a66de58c9f3a422fdcad4dd2ec3ad39ce.zip
Merge branch 'dev' into improve-frontend-responsiveness
Diffstat (limited to '.github/workflows/on_pull_request.yaml')
-rw-r--r--.github/workflows/on_pull_request.yaml43
1 files changed, 25 insertions, 18 deletions
diff --git a/.github/workflows/on_pull_request.yaml b/.github/workflows/on_pull_request.yaml
index a168be5b..d42965b1 100644
--- a/.github/workflows/on_pull_request.yaml
+++ b/.github/workflows/on_pull_request.yaml
@@ -18,22 +18,29 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
- - name: Set up Python 3.10
- uses: actions/setup-python@v4
+ - uses: actions/setup-python@v4
with:
- python-version: 3.10.6
- cache: pip
- cache-dependency-path: |
- **/requirements*txt
- - name: Install PyLint
- run: |
- python -m pip install --upgrade pip
- pip install pylint
- # This lets PyLint check to see if it can resolve imports
- - name: Install dependencies
- run: |
- export COMMANDLINE_ARGS="--skip-torch-cuda-test --exit"
- python launch.py
- - name: Analysing the code with pylint
- run: |
- pylint $(git ls-files '*.py')
+ python-version: 3.11
+ # NB: there's no cache: pip here since we're not installing anything
+ # from the requirements.txt file(s) in the repository; it's faster
+ # not to have GHA download an (at the time of writing) 4 GB cache
+ # of PyTorch and other dependencies.
+ - name: Install Ruff
+ run: pip install ruff==0.0.265
+ - name: Run Ruff
+ run: ruff .
+
+# The rest are currently disabled pending fixing of e.g. installing the torch dependency.
+
+# - name: Install PyLint
+# run: |
+# python -m pip install --upgrade pip
+# pip install pylint
+# # This lets PyLint check to see if it can resolve imports
+# - name: Install dependencies
+# run: |
+# export COMMANDLINE_ARGS="--skip-torch-cuda-test --exit"
+# python launch.py
+# - name: Analysing the code with pylint
+# run: |
+# pylint $(git ls-files '*.py')