-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (37 loc) · 1.18 KB
/
ndsl-checks.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
name: NDSL checks
on:
pull_request:
branches: [ dsl/develop ]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout NDSL
uses: actions/checkout@master
with:
repository: NOAA-GFDL/NDSL
submodules: 'recursive'
path: 'ndsl'
- name: Checkout repository
uses: actions/checkout@master
with:
submodules: 'recursive'
path: 'GCMGridComp'
- name: Step Python 3.11.9
uses: actions/[email protected]
with:
python-version: '3.11.9'
- name: Install OpenMPI for gt4py
run: |
sudo apt-get install libopenmpi-dev
- name: Install Python packages
run: |
python -m pip install --upgrade pip setuptools wheel
cd ndsl
pip install -e .[develop]
pip install -e ../GCMGridComp/GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSmoist_GridComp/pyMoist
- name: Run lint via pre-commit
run: |
cd ./GCMGridComp/GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSmoist_GridComp/pyMoist
pre-commit run --all-files