WebUI/.github/workflows/run_tests.yaml
Vladimir Repin 694611cbd8
Apply suggestions from code review
Use last version of setup-python action
Remove unnecesarry multicommand from run
Remove current directory from artifact paths

Co-authored-by: Margen67 <Margen67@users.noreply.github.com>
2022-11-19 00:56:08 +03:00

33 lines
938 B
YAML

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@v4
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: python launch.py --tests basic_features --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test --clip-models-path ./test/test_files/empty.pt
- name: Upload main app stdout-stderr
uses: actions/upload-artifact@v3
if: always()
with:
name: stdout-stderr
path: |
test/stdout.txt
test/stderr.txt