Skip to content

Commit

Permalink
Update python-crop-image.yml
Browse files Browse the repository at this point in the history
Install GDAL dependencies
  • Loading branch information
karen-an authored Jan 15, 2025
1 parent 966a2d6 commit c74682c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/python-crop-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,19 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.9.21"
- name: Install dependencies
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
- name: Install GDAL dependencies
run: |
sudo apt-get update
sudo apt-get install -y gdal-bin libgdal-dev
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade pip
pip install pygdal==$(gdal-config --version).* --global-option=build_ext --global-option="-I$(gdal-config --cflags | sed -e 's/-I//g')" --global-option="-L$(gdal-config --libs | sed -e 's/-L//g')"
pip install -r requirements.txt
- name: Run Jupyter notebook
run: jupyter execute crop_image.pynb
Expand Down

0 comments on commit c74682c

Please sign in to comment.