Bump requests from 2.32.4 to 2.32.5 #2229
Workflow file for this run
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: RavenPy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| env: | |
| RAVEN_TESTDATA_BRANCH: v2025.6.12 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Code linting | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ "3.13" ] | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| disable-sudo: true | |
| egress-policy: block | |
| allowed-endpoints: > | |
| files.pythonhosted.org:443 | |
| github.com:443 | |
| pypi.org:443 | |
| - name: Checkout Repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python${{ matrix.python-version }} | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install CI libraries | |
| run: | | |
| python -m pip install --require-hashes -r CI/requirements_ci.txt | |
| - name: Environment Caching | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: | | |
| .tox | |
| key: ${{ hashFiles('pyproject.toml', 'tox.toml') }}-lint | |
| - name: Run linting suite | |
| run: | | |
| python -m tox -e lint | |
| pip: | |
| name: Test with Python${{ matrix.python-version }} (tox, ${{ matrix.os }}), upstream=${{ matrix.upstream-branch }}) | |
| needs: lint | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ 'ubuntu-latest', "macos-latest" ] | |
| python-version: [ "3.11", "3.12", "3.13" ] | |
| include: | |
| - os: 'ubuntu-latest' | |
| python-version: '3.10' | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| disable-sudo: false | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python${{ matrix.python-version }} | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install GDAL/HDF5 + Set GDAL_VERSION (Ubuntu) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libgdal-dev libhdf5-dev | |
| echo "GDAL_VERSION=$(gdal-config --version)" >> $GITHUB_ENV | |
| - name: Install GDAL/HDF5 (macOS) | |
| if: matrix.os == 'macos-latest' | |
| uses: tecolicom/actions-use-homebrew-tools@b9c066b79607fa3d71e0be05d7003bb75fd9ff34 # v1.3 | |
| with: | |
| tools: gdal hdf5 | |
| cache: "yes" | |
| - name: Set GDAL_VERSION (macOS) | |
| if: matrix.os == 'macos-latest' | |
| run: | | |
| echo "GDAL_VERSION=$(gdalinfo --version | sed -E 's/^GDAL //; s/[^0-9.].*$//')" >> $GITHUB_ENV | |
| - name: Install CI libraries | |
| run: | | |
| python3 -m pip install --require-hashes -r CI/requirements_ci.txt | |
| - name: Environment caching (macOS) | |
| if: matrix.os == 'macos-latest' | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: | | |
| .tox | |
| ~/Library/Caches/raven-testdata | |
| key: ${{ hashFiles('src/ravenpy/testing/registry.txt') }}-${{ env.RAVEN_TESTDATA_BRANCH }}-${{ matrix.os }} | |
| - name: Environment caching (Ubuntu) | |
| if: matrix.os == 'ubuntu-latest' | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: | | |
| .tox | |
| ~/.cache/raven-testdata | |
| key: ${{ hashFiles('src/ravenpy/testing/registry.txt') }}-${{ env.RAVEN_TESTDATA_BRANCH }}-${{ matrix.os }} | |
| - name: Test with tox | |
| run: | | |
| python3 -m tox | |
| env: | |
| TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }} | |
| UPSTREAM_BRANCH: ${{ matrix.upstream-branch }} | |
| - name: Report Coverage | |
| uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7 | |
| with: | |
| flag-name: run-${{ matrix.python-version }}-${{ matrix.os }}-pypi | |
| parallel: true | |
| conda: | |
| name: Test with Python${{ matrix.python-version }} (Anaconda, ${{ matrix.os }}) | |
| needs: lint | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ "ubuntu-latest", "macos-latest" ] | |
| # - windows-latest # disabled until xesmf is available | |
| python-version: [ "3.10", "3.13" ] | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| disable-sudo: true | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Patch Environment File | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| sed -i 's/climpred >=2.4.0/xesmf/' environment.yml | |
| - name: Setup Conda (Micromamba) with Python${{ matrix.python-version }} | |
| uses: mamba-org/setup-micromamba@add3a49764cedee8ee24e82dfde87f5bc2914462 # v2.0.7 | |
| with: | |
| cache-downloads: true | |
| cache-environment: true | |
| cache-environment-key: environment-${{ matrix.python-version }}-${{ matrix.os }}-${{ github.head_ref }} | |
| environment-file: environment-dev.yml | |
| create-args: >- | |
| python=${{ matrix.python-version }} | |
| - name: Install RavenPy | |
| run: | | |
| python -m pip install -e ".[dev,gis]" | |
| - name: List installed packages | |
| run: | | |
| micromamba list | |
| python -m pip check || true | |
| - name: Cache test data (macOS) | |
| if: matrix.os == 'macos-latest' | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: | | |
| ~/Library/Caches/raven-testdata | |
| key: ${{ hashFiles('src/ravenpy/testing/registry.txt') }}-${{ env.RAVEN_TESTDATA_BRANCH }}-conda-${{ matrix.os }} | |
| - name: Cache test data (Ubuntu) | |
| if: matrix.os == 'ubuntu-latest' | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: | | |
| ~/.cache/raven-testdata | |
| key: ${{ hashFiles('src/ravenpy/testing/registry.txt') }}-${{ env.RAVEN_TESTDATA_BRANCH }}-conda-${{ matrix.os }} | |
| - name: Prefetch RavenPy test data | |
| run: | | |
| python -c "import ravenpy.testing.utils as rtu; rtu.populate_testing_data()" | |
| - name: Test RavenPy | |
| run: | | |
| python -m pytest --numprocesses=logical --cov=src/ravenpy --cov-report=lcov | |
| - name: Report Coverage | |
| uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7 | |
| with: | |
| flag-name: run-${{ matrix.python-version }}-${{ matrix.os }}-conda | |
| parallel: true | |
| finish: | |
| name: Finish | |
| needs: | |
| - pip | |
| - conda | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| disable-sudo: true | |
| egress-policy: audit | |
| - name: Coveralls Finished | |
| uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7 | |
| with: | |
| parallel-finished: true |