2022-11-19 19:15:10 +08:00
|
|
|
name: Run basic features tests on CPU with empty SD model
|
2022-11-14 18:39:22 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python 3.10
|
2022-11-19 05:56:08 +08:00
|
|
|
uses: actions/setup-python@v4
|
2022-11-14 18:39:22 +08:00
|
|
|
with:
|
|
|
|
python-version: 3.10.6
|
2023-01-07 17:34:02 +08:00
|
|
|
cache: pip
|
|
|
|
cache-dependency-path: |
|
|
|
|
**/requirements*txt
|
2022-11-14 18:39:22 +08:00
|
|
|
- name: Run tests
|
2023-03-25 21:12:50 +08:00
|
|
|
run: python launch.py --tests test --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test
|
2023-05-11 15:36:10 +08:00
|
|
|
env:
|
|
|
|
PIP_DISABLE_PIP_VERSION_CHECK: "1"
|
|
|
|
PIP_PROGRESS_BAR: "off"
|
|
|
|
TORCH_INDEX_URL: https://download.pytorch.org/whl/cpu
|
|
|
|
WEBUI_LAUNCH_LIVE_OUTPUT: "1"
|
2022-11-14 23:40:15 +08:00
|
|
|
- name: Upload main app stdout-stderr
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: stdout-stderr
|
|
|
|
path: |
|
2022-11-19 05:56:08 +08:00
|
|
|
test/stdout.txt
|
|
|
|
test/stderr.txt
|