Skip to content

limit to cdsapi>=0.7,<0.7.3 (#380) #461

limit to cdsapi>=0.7,<0.7.3 (#380)

limit to cdsapi>=0.7,<0.7.3 (#380) #461

Workflow file for this run

# SPDX-FileCopyrightText: 2021 The Atlite Authors
#
# SPDX-License-Identifier: CC0-1.0
name: CI
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 5
matrix:
os:
- ubuntu-latest
- macos-latest
# - windows-latest outcommented due to difficult rasterio installation
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
echo -ne "url: https://cds-beta.climate.copernicus.eu/api \nkey: ${{secrets.CDSAPI_TOKEN_BETA}}\n" > ~/.cdsapirc
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Test with pytest
run: |
export HDF5_USE_FILE_LOCKING=FALSE
pytest --cov=./ --cov-report=xml
- name: Upload code coverage report
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v4