mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 11:31:07 -05:00
Add GDAL installation and verification steps to CI workflow
This commit is contained in:
13
.github/workflows/django.yml
vendored
13
.github/workflows/django.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user