Skip to content

Commit

Permalink
CI: add github workflow for lint/typecheck/test
Browse files Browse the repository at this point in the history
  • Loading branch information
Acly committed Dec 5, 2023
1 parent 7efcaf0 commit 2dcf610
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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

0 comments on commit 2dcf610

Please sign in to comment.