Skip to content

Commit 7ed9bd2

Browse files
authored
Update action.yml
1 parent 6aa3867 commit 7ed9bd2

File tree

1 file changed

+1
-5
lines changed
  • .github/actions/Emscripten-Notebook-Tests

1 file changed

+1
-5
lines changed

.github/actions/Emscripten-Notebook-Tests/action.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ runs:
1818
shell: bash -l {0}
1919
run: |
2020
set -e
21-
echo "Processes on port 8000:"
22-
lsof -nP -i:8000 || echo "None"
2321
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus -c conda-forge -y
2422
micromamba activate xeus-lite-host
2523
if [[ "${{ matrix.os }}" == "macos"* ]]; then
@@ -83,7 +81,5 @@ runs:
8381
# Kill the jupyter lite serve process now we are done running xeus-cpp in the
8482
# Jupyter Lite website.
8583
kill -9 $jupyter_lite_process_id
86-
87-
pkill -f "jupyter|jupyter-lite" || :
88-
PID=$(lsof -t -i:8000 || :) && [ -n "$PID" ] && kill -9 $PID || :
84+
lsof -nP [email protected] -sTCP:LISTEN | awk 'NR>1 {print $2}' | uniq | xargs -r kill -9 || :
8985

0 commit comments

Comments
 (0)