-
Notifications
You must be signed in to change notification settings - Fork 151
49 lines (43 loc) · 1.33 KB
/
test-install.yml
File metadata and controls
49 lines (43 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Check if installation with conda/mamba works
name: Install Test
on:
schedule:
- cron: "0 6 * * *"
workflow_dispatch:
jobs:
install-conda:
name: Install from Conda
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
-
name: Install with Mamba
uses: mamba-org/setup-micromamba@v2
with:
environment-name: climada_env_${{ matrix.python-version }}
create-args: >-
python=${{ matrix.python-version }}
climada
init-shell: bash powershell
# Recompute environment for each run, but possibly use cached downloads
cache-environment: false
cache-downloads: true
cache-downloads-key: downloads-${{ matrix.os }}-py${{ matrix.python-version }}
-
name: Test CLIMADA (bash)
shell: bash -el {0}
run: |
python -c "import climada"
python -m unittest climada.engine.test.test_impact
-
name: Test CLIMADA (powershell)
shell: pwsh
if: ${{ matrix.os == 'windows-latest' }}
run: |
python -c "import climada"
python -m unittest climada.engine.test.test_impact