File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 52
52
env_vars : OS,PYTHON
53
53
name : codecov-umbrella
54
54
fail_ci_if_error : false
55
+
56
+ upstream-dev :
57
+ name : upstream-dev
58
+ runs-on : ubuntu-latest
59
+ steps :
60
+ - uses : actions/checkout@v2
61
+ - name : Cache conda
62
+ uses : actions/cache@v1
63
+ env :
64
+ # Increase this value to reset cache if ci/upstream-dev-env.yml has not changed
65
+ CACHE_NUMBER : 0
66
+ with :
67
+ path : ~/conda_pkgs_dir
68
+ key : ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/upstream-dev-env.yml') }}
69
+ - uses : goanpeca/setup-miniconda@v1
70
+ with :
71
+ activate-environment : cf_xarray_test # Defined in ci/upstream-dev-env.yml
72
+ auto-update-conda : false
73
+ python-version : 3.8
74
+ environment-file : ci/upstream-dev-env.yml
75
+ use-only-tar-bz2 : true # IMPORTANT: This needs to be set for caching to work properly!
76
+ - name : Set up conda environment
77
+ shell : bash -l {0}
78
+ run : |
79
+ python -m pip install -e .
80
+ conda list
81
+
82
+ - name : Run Tests
83
+ shell : bash -l {0}
84
+ run : |
85
+ pytest
Original file line number Diff line number Diff line change
1
+ name : cf_xarray_test
2
+ channels :
3
+ - conda-forge
4
+ dependencies :
5
+ - pytest-cov
6
+ - pytest
7
+ - dask
8
+ - matplotlib
9
+ - netcdf4
10
+ - pip :
11
+ - git+https://github.com/pydata/xarray
You can’t perform that action at this time.
0 commit comments