-
-
Notifications
You must be signed in to change notification settings - Fork 381
39 lines (36 loc) · 1012 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Run installer and basic tests (no diffusion)
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Lint
uses: psf/black@stable
- name: Typecheck
uses: jakebailey/pyright-action@v1
with:
pylance-version: latest-release
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Dependencies
run: pip install -r requirements.txt
- name: Download models
run: python scripts/download_models.py --minimal script/docker
- name: Test installer
run: python -m pytest tests/test_server.py -vs --test-install
- name: Test
run: python -m pytest tests -vs --ci