mirror of
https://github.com/Stability-AI/generative-models.git
synced 2025-12-26 17:54:25 +01:00
Pre release changes for production (#59)
* clean requirements * rm taming deps * isort, black * mv lipips, license * clean vq, fix path * fix loss path, gitignore * tested requirements pt13 * fix numpy req for python3.8, add tests * fix name * fix dep scipy 3.8 pt2 * add black test formatter
This commit is contained in:
15
.github/workflows/black.yml
vendored
Normal file
15
.github/workflows/black.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Run black
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install venv
|
||||
run: |
|
||||
sudo apt-get -y install python3.10-venv
|
||||
- uses: psf/black@stable
|
||||
with:
|
||||
options: "--check --verbose -l88"
|
||||
src: "./sgm ./scripts ./main.py"
|
||||
26
.github/workflows/test-build.yaml
vendored
Normal file
26
.github/workflows/test-build.yaml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Build package
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ["3.8", "3.10"]
|
||||
requirements-file: ["pt2", "pt13"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements/${{ matrix.requirements-file }}.txt
|
||||
pip install .
|
||||
Reference in New Issue
Block a user