aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Repin <32306715+mezotaken@users.noreply.github.com>2022-11-19 14:15:10 +0300
committerGitHub <noreply@github.com>2022-11-19 14:15:10 +0300
commit14dfede8ddbf6b82bb290d5c4292d52b6b68e3ca (patch)
treecd563ef136e082e7009a66f9229805539f7b97c6
parent694611cbd8151533cf18e01a8ead32771ea12ff3 (diff)
Minor fixes
Remove unused test completely Change job name Don't use empty.pt as CLIP weights - it wont work. Use latest version of actions/cache
-rw-r--r--.github/workflows/run_tests.yaml9
-rw-r--r--test/basic_features/utils_test.py14
2 files changed, 4 insertions, 19 deletions
diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml
index 6c6f15a8..49dc92bd 100644
--- a/.github/workflows/run_tests.yaml
+++ b/.github/workflows/run_tests.yaml
@@ -1,4 +1,4 @@
-name: Run tests on CPU with empty model
+name: Run basic features tests on CPU with empty SD model
on:
- push
@@ -14,14 +14,13 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.10.6
- - uses: actions/cache@v2
+ - uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- restore-keys: |
- ${{ runner.os }}-pip-
+ restore-keys: ${{ runner.os }}-pip-
- name: Run tests
- 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
+ run: 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()
diff --git a/test/basic_features/utils_test.py b/test/basic_features/utils_test.py
index 9706db8b..765470c9 100644
--- a/test/basic_features/utils_test.py
+++ b/test/basic_features/utils_test.py
@@ -18,20 +18,6 @@ class UtilsTests(unittest.TestCase):
def test_options_get(self):
self.assertEqual(requests.get(self.url_options).status_code, 200)
- # def test_options_write(self):
- # response = requests.get(self.url_options)
- # self.assertEqual(response.status_code, 200)
-
- # pre_value = response.json()["send_seed"]
-
- # self.assertEqual(requests.post(self.url_options, json={"send_seed":not pre_value}).status_code, 200)
-
- # response = requests.get(self.url_options)
- # self.assertEqual(response.status_code, 200)
- # self.assertEqual(response.json()["send_seed"], not pre_value)
-
- # requests.post(self.url_options, json={"send_seed": pre_value})
-
def test_cmd_flags(self):
self.assertEqual(requests.get(self.url_cmd_flags).status_code, 200)