tests: add diffusers tests (#1419)

This commit is contained in:
Ettore Di Giacinto 2023-12-11 02:20:34 -05:00 committed by GitHub
parent 831418612b
commit 48e5380e45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 148 additions and 38 deletions

View file

@ -0,0 +1,14 @@
#!/bin/bash
##
## A bash script wrapper that runs the diffusers server with conda
export PATH=$PATH:/opt/conda/bin
# Activate conda environment
source activate diffusers
# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
python -m unittest $DIR/test.py