2020 lint :
2121 name : Code linting
2222 runs-on : ubuntu-latest
23+ strategy :
24+ matrix :
25+ python-version : [ "3.13" ]
2326 steps :
2427 - name : Harden Runner
2528 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
3740 - name : Set up Python${{ matrix.python-version }}
3841 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3942 with :
40- python-version : " 3.x "
43+ python-version : ${{ matrix.python-version }}
4144 cache : pip
4245 - name : Install CI libraries
4346 run : |
4750 with :
4851 path : |
4952 .tox
50- key : ${{ hashFiles('pyproject.toml', 'tox.ini ') }}-lint
53+ key : ${{ hashFiles('pyproject.toml', 'tox.toml ') }}-lint
5154 - name : Run linting suite
5255 run : |
5356 python -m tox -e lint
6164 matrix :
6265 os : [ 'ubuntu-latest', "macos-latest" ]
6366 python-version : [ "3.11", "3.12", "3.13" ]
64- tox-env : [ 'false' ]
6567 include :
6668 - os : ' ubuntu-latest'
6769 python-version : ' 3.10'
68- tox-env : ' py3.10-coverage-upstream'
6970 steps :
7071 - name : Harden Runner
7172 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
@@ -82,17 +83,17 @@ jobs:
8283 python-version : ${{ matrix.python-version }}
8384 cache : pip
8485
85- - name : Install GDAL + Set GDAL_VERSION (Ubuntu)
86+ - name : Install GDAL/HDF5 + Set GDAL_VERSION (Ubuntu)
8687 if : matrix.os == 'ubuntu-latest'
8788 run : |
8889 sudo apt-get update
89- sudo apt-get install libgdal-dev
90+ sudo apt-get install libgdal-dev libhdf5-dev
9091 echo "GDAL_VERSION=$(gdal-config --version)" >> $GITHUB_ENV
91- - name : Install GDAL (macOS)
92+ - name : Install GDAL/HDF5 (macOS)
9293 if : matrix.os == 'macos-latest'
9394 uses : tecolicom/actions-use-homebrew-tools@b9c066b79607fa3d71e0be05d7003bb75fd9ff34 # v1.3
9495 with :
95- tools : gdal
96+ tools : gdal hdf5
9697 cache : " yes"
9798 - name : Set GDAL_VERSION (macOS)
9899 if : matrix.os == 'macos-latest'
@@ -120,22 +121,19 @@ jobs:
120121 ~/.cache/raven-testdata
121122 key : ${{ hashFiles('src/ravenpy/testing/registry.txt') }}-${{ env.RAVEN_TESTDATA_BRANCH }}-${{ matrix.os }}
122123
123- - name : Test with tox and report coverage
124+ - name : Test with tox
124125 run : |
125- if [ "${{ matrix.tox-env }}" != "false" ]; then
126- python3 -m tox -e ${{ matrix.tox-env }}-prefetch
127- elif [ "${{ matrix.python-version }}" != "3.13" ]; then
128- python3 -m tox -e py${{ matrix.python-version }}-prefetch-coverage
129- else
130- python3 -m tox -e py${{ matrix.python-version }}-prefetch
131- fi
126+ python3 -m tox
132127 env :
133- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
134- COVERALLS_FLAG_NAME : run-Python${{ matrix.python-version }}-${{ matrix.os }}
135- COVERALLS_PARALLEL : true
136- COVERALLS_SERVICE_NAME : github
128+ TOX_GH_MAJOR_MINOR : ${{ matrix.python-version }}
137129 UPSTREAM_BRANCH : ${{ matrix.upstream-branch }}
138130
131+ - name : Report Coverage
132+ uses : coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
133+ with :
134+ flag-name : run-${{ matrix.python-version }}-${{ matrix.os }}-pypi
135+ parallel : true
136+
139137 conda :
140138 name : Test with Python${{ matrix.python-version }} (Anaconda, ${{ matrix.os }})
141139 needs : lint
0 commit comments