Skip to content

Dataset is the exception case, not DataArray #86

Dataset is the exception case, not DataArray

Dataset is the exception case, not DataArray #86

Workflow file for this run

name: on-push
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.0
combine-environments:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install conda-merge
run: |
$CONDA/bin/python -m pip install conda-merge
- name: Combine environments
run: |
for SUFFIX in ci integration; do
$CONDA/bin/conda-merge ci/environment-$SUFFIX.yml environment.yml > ci/combined-environment-$SUFFIX.yml || exit
done
- name: Archive combined environments
uses: actions/upload-artifact@v3
with:
name: combined-environments
path: ci/combined-environment-*.yml
unit-tests:
name: unit-tests (3.10)
needs: combine-environments
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download combined environments
uses: actions/download-artifact@v3
with:
name: combined-environments
path: ci
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@v15
with:
environment-file: ci/combined-environment-ci.yml
environment-name: DEVELOP
channels: conda-forge
cache-env: true
extra-specs: |
python=3.10
- name: Install package
run: |
python -m pip install --no-deps -e .
- name: Run tests
run: |
make unit-tests COV_REPORT=xml
docs-build:
needs: [combine-environments, unit-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download combined environments
uses: actions/download-artifact@v3
with:
name: combined-environments
path: ci
- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/combined-environment-ci.yml
environment-name: DEVELOP
cache-environment: true
create-args: >-
python=3.10
- name: Install package
run: |
python -m pip install --no-deps -e .
- name: Build documentation
run: |
make docs-build
integration-tests:
needs: [combine-environments, unit-tests]
if: |
success() && false
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: '3.10'
extra: -integration
steps:
- uses: actions/checkout@v3
- name: Download combined environments
uses: actions/download-artifact@v3
with:
name: combined-environments
path: ci
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@v15
with:
environment-file: ci/combined-environment${{ matrix.extra }}.yml
environment-name: DEVELOP${{ matrix.extra }}
channels: conda-forge
cache-env: true
extra-specs: |
python=${{ matrix.python-version }}
- name: Install package
run: |
python -m pip install --no-deps -e .
- name: Run tests
run: |
make unit-tests COV_REPORT=xml