mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 12:11:13 -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
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
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
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
pip install GDAL==$(gdal-config --version)
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
- name: Verify GDAL
|
||||||
|
run: |
|
||||||
|
python -c "from osgeo import gdal; print('GDAL Version:', gdal.__version__)"
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
python manage.py test
|
python manage.py test
|
||||||
|
|||||||
Reference in New Issue
Block a user