Moved unnecessary data elsewhere #19
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: CI | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| branches: [main, develop] | |
| # Cancel any in-progress run on the same branch when a new push lands. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: test (py${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # Skip LFS pull: slow tests auto-skip when the NetCDF samples are | |
| # missing (see tests/conftest.py), and we don't run them in CI. | |
| with: | |
| lfs: false | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| cache-dependency-path: pyproject.toml | |
| - name: Install system libs for cartopy / pyresample / netCDF | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| libgeos-dev libproj-dev libhdf5-dev libnetcdf-dev | |
| - name: Install package | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e .[dev,test] | |
| - name: Lint and format (pre-commit) | |
| run: pre-commit run --all-files --show-diff-on-failure | |
| - name: Run tests (fast path) with coverage | |
| run: pytest -m "not slow" --cov --cov-report=term --cov-report=xml --cov-report=html | |
| - name: Upload coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-py${{ matrix.python-version }} | |
| path: | | |
| .coverage | |
| coverage.xml | |
| htmlcov/ | |
| retention-days: 14 |