aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-12-03 10:19:51 +0300
committerGitHub <noreply@github.com>2022-12-03 10:19:51 +0300
commitc9a2cfdf2a53d37c2de1908423e4f548088667ef (patch)
treeeabdca1b7665e0ee00f130e9f8544ffd23e474a2 /.github/workflows
parent39541d7725bc42f456a604b07c50aba503a5a09a (diff)
parent5cd5a672f7889dcc018c3873ec557d645ebe35d0 (diff)
Merge branch 'master' into racecond_fix
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/run_tests.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml
new file mode 100644
index 00000000..49dc92bd
--- /dev/null
+++ b/.github/workflows/run_tests.yaml
@@ -0,0 +1,31 @@
+name: Run basic features tests on CPU with empty SD 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@v4
+ with:
+ python-version: 3.10.6
+ - uses: actions/cache@v3
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
+ restore-keys: ${{ runner.os }}-pip-
+ - name: Run tests
+ run: python launch.py --tests basic_features --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test
+ - name: Upload main app stdout-stderr
+ uses: actions/upload-artifact@v3
+ if: always()
+ with:
+ name: stdout-stderr
+ path: |
+ test/stdout.txt
+ test/stderr.txt