Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chopper.lee committed Jan 15, 2024
1 parent e6f9c3a commit a003d0d
Show file tree
Hide file tree
Showing 163 changed files with 76 additions and 22,352 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Run black
on: [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"
27 changes: 27 additions & 0 deletions .github/workflows/test-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build package

on:
push:
branches: [ main ]
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 .
34 changes: 34 additions & 0 deletions .github/workflows/test-inference.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test inference

on:
pull_request:
push:
branches:
- main

jobs:
test:
name: "Test inference"
# This action is designed only to run on the Stability research cluster at this time, so many assumptions are made about the environment
if: github.repository == 'stability-ai/generative-models'
runs-on: [self-hosted, slurm, g40]
steps:
- uses: actions/checkout@v3
- name: "Symlink checkpoints"
run: ln -s ${{vars.SGM_CHECKPOINTS_PATH}} checkpoints
- name: "Setup python"
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: "Install Hatch"
run: pip install hatch
- name: "Run inference tests"
run: hatch run ci:test-inference --junit-xml test-results.xml
- name: Surface failing tests
if: always()
uses: pmeier/pytest-results-action@main
with:
path: test-results.xml
summary: true
display-options: fEX
fail-on-empty: true
1 change: 0 additions & 1 deletion thirdparty/carvekit/.dockerignore

This file was deleted.

5 changes: 0 additions & 5 deletions thirdparty/carvekit/.flake8

This file was deleted.

2 changes: 0 additions & 2 deletions thirdparty/carvekit/.gitattributes

This file was deleted.

72 changes: 0 additions & 72 deletions thirdparty/carvekit/.github/workflows/codeql-analysis.yml

This file was deleted.

42 changes: 0 additions & 42 deletions thirdparty/carvekit/.github/workflows/docker.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions thirdparty/carvekit/.github/workflows/master.yml

This file was deleted.

24 changes: 0 additions & 24 deletions thirdparty/carvekit/.github/workflows/master_docker.yaml

This file was deleted.

42 changes: 0 additions & 42 deletions thirdparty/carvekit/.github/workflows/python-publish.yml

This file was deleted.

7 changes: 0 additions & 7 deletions thirdparty/carvekit/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions thirdparty/carvekit/.pre-commit-config.yaml

This file was deleted.

Loading

0 comments on commit a003d0d

Please sign in to comment.