-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (38 loc) · 1.19 KB
/
test-python-lib.yml
File metadata and controls
40 lines (38 loc) · 1.19 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
# ------------------------------------------------------------------------------
# (c) Crown copyright Met Office. All rights reserved.
# The file LICENCE, distributed with this code, contains details of the terms
# under which the code may be used.
# ------------------------------------------------------------------------------
name: Test Python library
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.13
- name: Install python library
run: |
cd post-processing
python -m pip install --upgrade pip
python -m pip install .
python -m pip install .[dev]
- name: Run unit tests
run: |
python -m unittest discover -s post-processing
- name: Type check with mypy
run: |
python -m mypy post-processing/vernier
python -m mypy post-processing/tests
- name: Run CLI tools
run: |
summarise-vernier post-processing/vernier/tools/vernier-output-example-collated