File tree Expand file tree Collapse file tree 2 files changed +4
-19
lines changed Expand file tree Collapse file tree 2 files changed +4
-19
lines changed Original file line number Diff line number Diff line change 1
- name : Run tests on CPU with empty model
1
+ name : Run basic features tests on CPU with empty SD model
2
2
3
3
on :
4
4
- push
@@ -14,14 +14,13 @@ jobs:
14
14
uses : actions/setup-python@v4
15
15
with :
16
16
python-version : 3.10.6
17
- - uses : actions/cache@v2
17
+ - uses : actions/cache@v3
18
18
with :
19
19
path : ~/.cache/pip
20
20
key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
21
- restore-keys : |
22
- ${{ runner.os }}-pip-
21
+ restore-keys : ${{ runner.os }}-pip-
23
22
- name : Run tests
24
- run : python launch.py --tests basic_features --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test --clip-models-path ./test/test_files/empty.pt
23
+ run : python launch.py --tests basic_features --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test
25
24
- name : Upload main app stdout-stderr
26
25
uses : actions/upload-artifact@v3
27
26
if : always()
Original file line number Diff line number Diff line change @@ -18,20 +18,6 @@ def setUp(self):
18
18
def test_options_get (self ):
19
19
self .assertEqual (requests .get (self .url_options ).status_code , 200 )
20
20
21
- # def test_options_write(self):
22
- # response = requests.get(self.url_options)
23
- # self.assertEqual(response.status_code, 200)
24
-
25
- # pre_value = response.json()["send_seed"]
26
-
27
- # self.assertEqual(requests.post(self.url_options, json={"send_seed":not pre_value}).status_code, 200)
28
-
29
- # response = requests.get(self.url_options)
30
- # self.assertEqual(response.status_code, 200)
31
- # self.assertEqual(response.json()["send_seed"], not pre_value)
32
-
33
- # requests.post(self.url_options, json={"send_seed": pre_value})
34
-
35
21
def test_cmd_flags (self ):
36
22
self .assertEqual (requests .get (self .url_cmd_flags ).status_code , 200 )
37
23
You can’t perform that action at this time.
0 commit comments