stable-diffusion-webui/.github/workflows/run_tests.yaml

27 lines
716 B
YAML
Raw Normal View History

2022-11-14 10:39:22 +00:00
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: |
2022-11-14 10:45:21 +00:00
export COMMANDLINE_ARGS="--tests basic_features --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test"
2022-11-14 10:39:22 +00:00
python launch.py