Skip to content

Commit 78b2681

Browse files
authored
Add version check for pip
1 parent 0e0feab commit 78b2681

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/CI.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,14 @@ jobs:
5454
cache-name: julia-cache;workflow=${{ github.workflow }};ref=${{ github.run_id }}
5555
include-matrix: false
5656
- uses: actions/checkout@v4
57-
- name: "Install updates"
58-
run: sudo apt update && sudo apt dist-upgrade
5957
- name: "Install Jupyter"
60-
run: pip3 install --break-system-packages notebook jupytext
58+
run: |
59+
if (( $(echo "$(pip --version | awk '{print $2}') >= 23.1" |bc -l) )); then
60+
FLAG='--break-system-packages'
61+
else
62+
FLAG=''
63+
fi
64+
pip3 install $FLAG notebook jupytext
6165
- name: "Install julia pre-requisites"
6266
run: |
6367
julia -e '

0 commit comments

Comments
 (0)