From 4fe0ae362a50d1546b90d9bcae9252a85faab5dd Mon Sep 17 00:00:00 2001 From: Zeitsperre <10819524+Zeitsperre@users.noreply.github.com> Date: Mon, 26 Feb 2024 10:09:32 -0500 Subject: [PATCH] test against xclim main development branch --- .github/workflows/main.yml | 16 +++++++++++++--- tox.ini | 1 + 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 06d21c58..1ae5ff7a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,7 +67,7 @@ jobs: - python-version: "3.10" tox-build: "py310-coveralls" - python-version: "3.11" - tox-build: "py311-coveralls" + tox-build: "py311-xclim-coveralls" - python-version: "3.12" tox-build: "py312-esmpy-coveralls" defaults: @@ -129,7 +129,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + include: + - python-version: "3.9" + intake-esm-downgrade: true + - python-version: "3.10" + - python-version: "3.11" + - python-version: "3.12" + xclim-upstream: true defaults: run: shell: bash -l {0} @@ -148,9 +154,13 @@ jobs: mamba python=${{ matrix.python-version }} - name: Downgrade intake-esm - if: matrix.python-version == '3.9' + if: matrix.intake-esm-downgrade run: | micromamba install -y -c conda-forge intake-esm=2023.11.10 + - name: Install xclim main branch + if: matrix.xclim-upstream + run: | + python -m pip install git+https://github.com/Ouranosinc/xclim.git@main - name: Conda and Mamba versions run: | mamba --version diff --git a/tox.ini b/tox.ini index bc187cbf..e5219c2f 100644 --- a/tox.ini +++ b/tox.ini @@ -69,6 +69,7 @@ download = true deps = coveralls: coveralls esmpy: git+https://github.com/esmf-org/esmf.git@v{env:ESMF_VERSION}\#subdirectory=src/addon/esmpy + xclim: git+https://github.com/Ouranosinc/xclim.git@main extras = dev conda_channels =