Add GDAL installation and verification steps to CI workflow

This commit is contained in:
pacnpal
2025-02-06 10:35:56 -05:00
parent 4215e14b5e
commit dbd76785b5

View File

@@ -21,10 +21,23 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install GDAL Dependencies
run: |
sudo apt-get update
sudo apt-get install -y gdal-bin python3-gdal libgdal-dev
- name: Set GDAL Environment
run: |
export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
gdal-config --version
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install GDAL==$(gdal-config --version)
pip install -r requirements.txt
- name: Verify GDAL
run: |
python -c "from osgeo import gdal; print('GDAL Version:', gdal.__version__)"
- name: Run Tests
run: |
python manage.py test