mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-05 00:31:49 -08:00
Tests separated for github-actions CI
This commit is contained in:
parent
007f4f7314
commit
93d6c0209a
10 changed files with 108 additions and 25 deletions
26
.github/workflows/run_tests.yaml
vendored
Normal file
26
.github/workflows/run_tests.yaml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Run tests on CPU with empty model
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: 3.10.6
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
- name: Run tests
|
||||
run: |
|
||||
export COMMANDLINE_ARGS="--tests basic_features --no-half --disable-opt-split-attention --use-cpu all"
|
||||
python launch.py
|
||||
Loading…
Add table
Add a link
Reference in a new issue