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

Commit a997721

Browse files
authored
Fix openai api pipeline (#948)
Co-authored-by: Hien To <tominhhien97@gmail.com>
1 parent 979be8b commit a997721

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/cortex-js-openai-coverage.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
4747
- name: Run test
4848
run: |
49-
node cortex-js/dist/src/command.js serve --address 127.0.0.1 --port 4010 > cortex.log & cortex_pid=$!
49+
node cortex-js/dist/src/command.js --address 127.0.0.1 --port 4010 > cortex.log
5050
sleep 3
5151
wget --no-verbose -O api.json http://127.0.0.1:4010/api-json
5252
cat api.json
@@ -65,7 +65,6 @@ jobs:
6565
echo "rp_endpoint = ${{ secrets.RP_ENDPOINT }}" >> pytest.ini
6666
6767
pytest --endpoint "$ENDPOINTS" --reportportal --html=report.html -v || true
68-
kill $cortex_pid
6968
deactivate
7069
env:
7170
ENDPOINTS: ${{ github.event.inputs.endpoints }}
@@ -109,8 +108,8 @@ jobs:
109108
- name: Clean up
110109
if: always()
111110
run: |
111+
node cortex-js/dist/src/command.js stop
112112
rm -rf /tmp/jan
113113
rm -rf openai-python
114114
rm -rf report.html
115115
rm -rf report.zip
116-

0 commit comments

Comments
 (0)