Skip to content

Commit

Permalink
Add version check for pip
Browse files Browse the repository at this point in the history
  • Loading branch information
aaruni96 authored Oct 18, 2024
1 parent 0e0feab commit 78b2681
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,14 @@ jobs:
cache-name: julia-cache;workflow=${{ github.workflow }};ref=${{ github.run_id }}
include-matrix: false
- uses: actions/checkout@v4
- name: "Install updates"
run: sudo apt update && sudo apt dist-upgrade
- name: "Install Jupyter"
run: pip3 install --break-system-packages notebook jupytext
run: |
if (( $(echo "$(pip --version | awk '{print $2}') >= 23.1" |bc -l) )); then
FLAG='--break-system-packages'
else
FLAG=''
fi
pip3 install $FLAG notebook jupytext
- name: "Install julia pre-requisites"
run: |
julia -e '
Expand Down

0 comments on commit 78b2681

Please sign in to comment.