Skip to content

CI Upstream

CI Upstream #860

Workflow file for this run

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@v3
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