-
Notifications
You must be signed in to change notification settings - Fork 55
58 lines (51 loc) · 1.74 KB
/
upstream-dev-ci.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Upstream-dev CI
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Daily “At 00:00”
jobs:
upstream-dev:
name: upstream-dev-py310
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: checkout
uses: actions/checkout@v4
with:
token: ${{ github.token }}
- name: conda_setup
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: geocat_comp_upstream
channel-priority: strict
miniconda-version: "latest"
python-version: "3.10"
channels: conda-forge
- name: Install select upstream dependencies
run: |
pip install git+https://github.com/Unidata/MetPy.git
pip install git+https://github.com/numpy/numpy.git
pip install git+https://github.com/dask/dask.git
pip install git+https://github.com/dask/distributed.git
pip install git+https://github.com/hgrecco/pint.git
pip install git+https://github.com/pydata/xarray.git
pip install git+https://github.com/xarray-contrib/cf-xarray.git
pip install git+https://github.com/xarray-contrib/xskillscore.git
- name: Install conda dependencies
run: |
conda env update --file build_envs/upstream-dev-environment.yml
- name: Install geocat-comp
run: |
python -m pip install . --no-deps
- name: conda list
run: |
conda list
- name: Running Tests
run: |
python -m pytest test -v --cov=./geocat/comp --cov-report=xml