-
Notifications
You must be signed in to change notification settings - Fork 96
38 lines (33 loc) · 974 Bytes
/
CI.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
echo -ne "url: https://cds.climate.copernicus.eu/api/v2 \nkey: ${{secrets.CDSAPI_TOKEN}}\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@v3