-
Notifications
You must be signed in to change notification settings - Fork 3
83 lines (69 loc) · 1.68 KB
/
ci.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: NHM-Assist continuous integration
on:
# run at 6 AM UTC every day
schedule:
- cron: '0 6 * * *'
push:
branches:
- main
- ci
paths-ignore:
- '**.md'
- '.gitignore'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- '.gitignore'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# lint:
# name: Lint
# runs-on: ubuntu-latest
# defaults:
# run:
# shell: bash
# steps:
# - name: Checkout repo
# uses: actions/checkout@v4
# - name: Setup python
# uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# - name: Install ruff
# run: pip install ruff
# - name: Lint
# run: ruff check .
# - name: Check format
# run: ruff format . --check
test:
name: test notebooks
# needs: lint
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["macos-latest", "windows-latest", "ubuntu-latest"]
python-version: ["3.10",] # "3.11"]
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yaml
cache-environment: true
cache-downloads: true
- name: Pull Williamette River domain data
run: |
./pull_domain.py --name=williamette_river
- name: Test notebooks
working-directory: .github/scripts
run: |
python test_notebooks.py