Skip to content

Fix CI, tests, docs build of the plugin-branch #1212

Fix CI, tests, docs build of the plugin-branch

Fix CI, tests, docs build of the plugin-branch #1212

Workflow file for this run

name: Python package
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
fail-fast: false
name: Run tests in conda environment ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: ewatercycle
environment-file: environment.yml
mamba-version: "*"
python-version: ${{ matrix.python-version }}
miniconda-version: "latest"
channels: conda-forge
- name: Install dependencies
shell: bash -l {0}
run: |
pip3 install -e .[dev]
- name: Test with pytest
run: pytest
shell: bash -l {0}