[Feat] Update libs #226
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11' | |
- name: Install pre-commit hook | |
run: | | |
pip install pre-commit | |
pre-commit install | |
- name: Linting | |
run: pre-commit run --all-files | |
- name: Check docstring coverage | |
run: | | |
pip install interrogate | |
interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 50 diffengine | |
build: | |
runs-on: ubuntu-22.04 | |
container: | |
image: pytorch/pytorch:2.0.0-cuda11.7-cudnn8-devel | |
options: --tty --ipc host | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11' | |
- name: Upgrade pip | |
run: pip install pip --upgrade | |
- name: Install system dependencies | |
run: | | |
apt-get update | |
apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libxrender-dev libc6 libc6-dev | |
- name: Install diffengine dependencies | |
run: | | |
pip install setuptools | |
- name: Build and install | |
run: rm -rf .eggs && pip install -e .[dev,optional] | |
- name: Install diffusers from main branch | |
run: pip install git+https://github.com/huggingface/diffusers.git | |
- name: Run unittests and generate coverage report | |
run: | | |
coverage run --branch --source=diffengine -m pytest tests/ | |
coverage xml | |
coverage report -m |