Attempting to upgrade apt repositories for a newer version of gdal. #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'tests/old/**' | |
| branches: | |
| - main | |
| pull_request: | |
| paths-ignore: | |
| - 'tests/old/**' | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: [3.14] | |
| include: | |
| - os: ubuntu-latest | |
| python-version: 3.13 | |
| - os: ubuntu-latest | |
| python-version: 3.12 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| fetch-depth: 1 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| env: | |
| C_INCLUDE_PATH: /usr/include/gdal | |
| CPLUS_INCLUDE_PATH: /usr/include/gdal | |
| run: | | |
| sudo apt-get update && sudo apt upgrade | |
| sudo apt-get install -y gdal-bin libgdal-dev python3-gdal | |
| python -m pip install --upgrade pip | |
| python -m pip install . | |
| python -m pip install pytest | |
| - name: Run pytest | |
| env: | |
| C_INCLUDE_PATH: /usr/include/gdal | |
| CPLUS_INCLUDE_PATH: /usr/include/gdal | |
| EARTHDATA_TOKEN: ${{ secrets.EARTHDATA_TOKEN }} | |
| run: | | |
| python -m pytest -v tests/*py |