2022-11-19 04:15:10 -07:00
|
|
|
name: Run basic features tests on CPU with empty SD model
|
2022-11-14 03:39:22 -07: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-18 14:56:08 -07:00
|
|
|
uses: actions/setup-python@v4
|
2022-11-14 03:39:22 -07:00
|
|
|
with:
|
|
|
|
python-version: 3.10.6
|
2022-11-19 04:15:10 -07:00
|
|
|
- uses: actions/cache@v3
|
2022-11-14 03:39:22 -07:00
|
|
|
with:
|
|
|
|
path: ~/.cache/pip
|
|
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
2022-11-19 04:15:10 -07:00
|
|
|
restore-keys: ${{ runner.os }}-pip-
|
2022-11-14 03:39:22 -07:00
|
|
|
- name: Run tests
|
2022-11-19 04:15:10 -07:00
|
|
|
run: python launch.py --tests basic_features --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test
|
2022-11-14 08:40:15 -07:00
|
|
|
- name: Upload main app stdout-stderr
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: stdout-stderr
|
|
|
|
path: |
|
2022-11-18 14:56:08 -07:00
|
|
|
test/stdout.txt
|
|
|
|
test/stderr.txt
|