Unverified Commit 9e4f68ac authored by Vladimir Repin's avatar Vladimir Repin Committed by GitHub
Browse files

Stop exporting cl args and upload stdout and stderr as artifacts

parent 5808241d
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -22,5 +22,12 @@ jobs:
            ${{ runner.os }}-pip-
      - name: Run tests
        run: |
          export COMMANDLINE_ARGS="--tests basic_features --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test --port 80"
          python launch.py
          python launch.py --tests basic_features --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test
      - name: Upload main app stdout-stderr
        uses: actions/upload-artifact@v3
        if: always()
        with:
          name: stdout-stderr
          path: |
            ./test/stdout.txt
            ./test/stderr.txt
+2 −0
Original line number Diff line number Diff line
@@ -244,6 +244,8 @@ def tests(test_dir):
    if "--ckpt" not in sys.argv:
        sys.argv.append("--ckpt")
        sys.argv.append("./test/test_files/empty.pt")
    if "--skip-torch-cuda-test" not in sys.argv:
        sys.argv.append("--skip-torch-cuda-test")

    print(f"Launching Web UI in another process for testing with arguments: {' '.join(sys.argv[1:])}")

+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ import unittest

class TestExtrasWorking(unittest.TestCase):
    def setUp(self):
        self.url_img2img = "http://localhost:80/sdapi/v1/extra-single-image"
        self.url_img2img = "http://localhost:7860/sdapi/v1/extra-single-image"
        self.simple_extras = {
            "resize_mode": 0,
            "show_extras_results": True,
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ import requests

class TestTxt2ImgWorking(unittest.TestCase):
    def setUp(self):
        self.url_txt2img = "http://localhost:80/sdapi/v1/txt2img"
        self.url_txt2img = "http://localhost:7860/sdapi/v1/txt2img"
        self.simple_txt2img = {
            "enable_hr": False,
            "denoising_strength": 0,
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ from PIL import Image

class TestImg2ImgWorking(unittest.TestCase):
    def setUp(self):
        self.url_img2img = "http://localhost:80/sdapi/v1/img2img"
        self.url_img2img = "http://localhost:7860/sdapi/v1/img2img"
        self.simple_img2img = {
            "init_images": [encode_pil_to_base64(Image.open(r"test/test_files/img2img_basic.png"))],
            "resize_mode": 0,
Loading