Back to development: 2.1.2 #254
This file contains 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: Linux | |
# Run on PR requests. And on master itself. | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
TestLinux: | |
name: Python ${{ matrix.python }} ${{ matrix.display_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- display_name: "2018" | |
python: 3.7 | |
os: ubuntu-20.04 | |
pins: "numpy==1.15.* h5py==2.9.* shapely==1.6.4 pyproj==2.2.* geojson==2.4.* mercantile==1.0.4 cftime==1.0.3" | |
- display_name: "2019" | |
python: 3.8 | |
os: ubuntu-20.04 | |
pins: "numpy==1.17.* h5py==2.10.* shapely==1.6.4 pyproj==2.4.* geojson==2.5.* mercantile==1.1.2 cftime==1.0.4" | |
- display_name: "2020" | |
python: 3.9 | |
os: ubuntu-20.04 | |
pins: "numpy==1.19.* h5py==3.1.* shapely==1.7.1 pyproj==3.0.* geojson==2.5.* mercantile==1.1.6 cftime==1.2.1" | |
- display_name: "2021" | |
python: 3.9 | |
os: ubuntu-20.04 | |
pins: "numpy==1.21.* h5py==3.3.* shapely==1.8.0 pyproj==3.2.* geojson==2.5.* mercantile==1.2.1 cftime==1.4.1" | |
- display_name: "2022" | |
python: '3.10' | |
os: ubuntu-22.04 | |
pins: "numpy==1.23.* h5py==3.7.* shapely==1.8.* pyproj==3.4.* geojson==2.5.* mercantile==1.2.1 cftime==1.6.2" | |
- display_name: "latest" | |
python: '3.10' | |
os: ubuntu-latest | |
pins: "" | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
lfs: true | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install gdal | |
run: | | |
sudo apt-get update | |
sudo apt-get install --yes --no-install-recommends libgdal-dev | |
- name: Install python dependencies | |
shell: bash | |
run: | | |
pip install --disable-pip-version-check --upgrade pip setuptools wheel | |
pip install -e .[geo,results] ${{ matrix.pins }} pygdal==$(gdal-config --version).* ipython pytest flake8 sphinx==1.8.5 docutils==0.17.* | |
pip list | |
- name: Run tests | |
shell: bash | |
run: | | |
pytest |