-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-weather-diagnostics-toolkit-ci.yml
More file actions
59 lines (48 loc) · 1.67 KB
/
python-weather-diagnostics-toolkit-ci.yml
File metadata and controls
59 lines (48 loc) · 1.67 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
50
51
52
53
54
55
56
57
58
59
name: python-weather-diagnostics-toolkit-ci
run-name: python weather diagnostics toolkit ci / ${{ github.event_name }} / ${{ github.ref_name }}
on:
workflow_dispatch:
push:
paths:
- ".github/workflows/python-weather-diagnostics-toolkit-ci.yml"
- "projects/python-weather-diagnostics-toolkit/**"
pull_request:
paths:
- ".github/workflows/python-weather-diagnostics-toolkit-ci.yml"
- "projects/python-weather-diagnostics-toolkit/**"
permissions: {}
env:
PYTHON_WEATHER_DIAGNOSTICS_VERSION: "3.11"
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
defaults:
run:
working-directory: projects/python-weather-diagnostics-toolkit
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_WEATHER_DIAGNOSTICS_VERSION }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install project
run: python -m pip install -e .[dev]
- name: Run tests
run: python -m pytest
- name: Run lint
run: python -m ruff check .
- name: Compile modules and scripts
run: python -m compileall src scripts
- name: CLI help smoke tests
run: |
python scripts/run_thermodynamic_check.py --help
python scripts/run_dynamics_summary.py --help
python scripts/run_focused_case_summary.py --help
python scripts/run_precipitation_workflow.py --help
python scripts/run_climate_statistics.py --help
python scripts/run_synthetic_ensemble.py --help