Add basic CI that tests the Python backend (#124)

* Basic action that runs pytest

* fix indentation

* debugging actions :(

* pull the images in a separate step so it doesn't take so long to build

* Split out the container build

* Another try, fixing missing env vars
This commit is contained in:
Brendan Dolan-Gavitt 2022-11-23 21:01:29 -05:00 committed by GitHub
parent fd484a2b03
commit 1b2b8ec251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 1 deletions

View file

@ -128,7 +128,7 @@ def test_python_backend(n_gpus: int):
enter_input(proc, r".*share (your )?huggingface cache[^:]+: ?", "y")
enter_input(proc, r".*cache directory[^:]+: ?", "") # default
enter_input(proc, r".*use int8[^:]+: ?", "n")
enter_input(proc, r".*run FauxPilot\? \[y/n\] ", "n")
enter_input(proc, r".*run FauxPilot\? \[y/n\] ", "n", timeout=120)
# copy $root/.env to $curdir/test.env
shutil.copy(str(root/".env"), str(curdir/"test.env"))