name: Django CI on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: python-version: [3.12] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} 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