Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit a6d9da3

Browse files
authored
fix: cortex.cpp nightly test with cortex.llamacpp (#1771)
Co-authored-by: Hien To <[email protected]>
1 parent 61c3ee1 commit a6d9da3

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

.github/workflows/cortex-cpp-quality-gate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
cat ~/.cortexrc
125125
126126
- name: Run e2e tests
127-
if: runner.os != 'Windows' && github.event.pull_request.draft == false
127+
if: github.event_name != 'schedule' && runner.os != 'Windows' && github.event.pull_request.draft == false
128128
run: |
129129
cd engine
130130
cp build/cortex build/cortex-nightly
@@ -138,7 +138,7 @@ jobs:
138138
GITHUB_TOKEN: ${{ secrets.PAT_SERVICE_ACCOUNT }}
139139

140140
- name: Run e2e tests
141-
if: runner.os == 'Windows' && github.event.pull_request.draft == false
141+
if: github.event_name != 'schedule' && runner.os == 'Windows' && github.event.pull_request.draft == false
142142
run: |
143143
cd engine
144144
cp build/cortex.exe build/cortex-nightly.exe

engine/e2e-test/cortex-llamacpp-e2e-nightly.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,19 @@
44
### e2e tests are expensive, have to keep engines tests in order
55
from test_api_engine_list import TestApiEngineList
66
from test_api_engine_install_nightly import TestApiEngineInstall
7-
from test_api_engine_get import TestApiEngineGet
8-
9-
### models, keeps in order, note that we only uninstall engine after finishing all models test
10-
from test_api_model_pull_direct_url import TestApiModelPullDirectUrl
11-
from test_api_model_start import TestApiModelStart
12-
from test_api_model_stop import TestApiModelStop
13-
from test_api_model_get import TestApiModelGet
14-
from test_api_model_list import TestApiModelList
15-
from test_api_model_update import TestApiModelUpdate
16-
from test_api_model_delete import TestApiModelDelete
7+
from test_api_model import TestApiModel
178
from test_api_model_import import TestApiModelImport
18-
from test_api_engine_uninstall import TestApiEngineUninstall
199

2010
###
2111
from test_cli_engine_get import TestCliEngineGet
2212
from test_cli_engine_install_nightly import TestCliEngineInstall
2313
from test_cli_engine_list import TestCliEngineList
24-
from test_cli_model_delete import TestCliModelDelete
25-
from test_cli_model_pull_direct_url import TestCliModelPullDirectUrl
14+
from test_cli_engine_uninstall import TestCliEngineUninstall
15+
from test_cli_model import TestCliModel
2616
from test_cli_server_start import TestCliServerStart
2717
from test_cortex_update import TestCortexUpdate
2818
from test_create_log_folder import TestCreateLogFolder
2919
from test_cli_model_import import TestCliModelImport
30-
from test_cli_engine_uninstall import TestCliEngineUninstall
3120

3221
if __name__ == "__main__":
3322
sys.exit(pytest.main([__file__, "-v"]))

0 commit comments

Comments
 (0)