Skip to content

Commit

Permalink
Add CI tests for all conda envs
Browse files Browse the repository at this point in the history
  • Loading branch information
timtroendle committed May 7, 2024
1 parent b6871f2 commit 7252301
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/environments.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Tests of conda environments on both Linux and Mac

on:
push:
branches:
- main
- develop
pull_request:

jobs:
environments-are-installable:
name: Environments are installable
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: latest
- name: DAG env
run: conda env create -f ./envs/geo.yaml --dry-run
- name: Default env
run: conda env create -f ./envs/default.yaml --dry-run
- name: Geo env
run: conda env create -f ./envs/geo.yaml --dry-run
- name: Hydro env
run: conda env create -f ./envs/hydro.yaml --dry-run
- name: Shell env
run: conda env create -f ./envs/shell.yaml --dry-run
- name: Test env
run: conda env create -f ./envs/test.yaml -n test_env --dry-run
- name: Vis env
run: conda env create -f ./envs/vis.yaml --dry-run
- name: Requirements docs env
run: conda env create -f ./requirements-docs.yaml --dry-run
- name: Requirements test env
run: conda env create -f ./requirements-test.yaml --dry-run
- name: Model usage env
run: conda env create -f ./templates/environment.yaml --dry-run

0 comments on commit 7252301

Please sign in to comment.