-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.33 KB
/
run-tests.yml
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
name: Test
# runs on a push on main and at the end of every day
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # nightly
jobs:
linux:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
name: Linux Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: bgcval2
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
miniforge-version: "latest"
use-mamba: true
- shell: bash -l {0}
run: conda --version
- shell: bash -l {0}
run: python -V
- shell: bash -l {0}
run: pip install -e .[develop]
- shell: bash -l {0}
run: |
analysis_compare --help
analysis_level3_amoc --help
analysis_level3_dms --help
analysis_level3_omz --help
analysis_level3_sameYear --help
analysis_p2p --help
analysis_timeseries --help
batch_timeseries --help
bgcval2_make_report --help
download_from_mass --help
- shell: bash -l {0}
run: pytest
- shell: bash -l {0}
run: sphinx-build -Ea doc doc/build