From 623f5a32b84ef8ffe33efb1f99b92a66e03f91e7 Mon Sep 17 00:00:00 2001 From: Ben Davies Date: Thu, 22 Aug 2024 10:55:00 +1000 Subject: [PATCH] Add um2netcdf entrypoint to CI. --- .github/workflows/CI.yml | 6 +++++- pyproject.toml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3a85817..068d3e9 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -93,10 +93,14 @@ jobs: shell: bash -l {0} run: pylint --extension-pkg-whitelist=netCDF4 --ignored-modules=umpost -E umpost - - name: Entrypoint test + - name: Entrypoint test of driver script shell: bash -l {0} run: esm1p5_convert_nc --help + - name: Entrypoint test of um2netcdf script + shell: bash -l {0} + run: um2nc --help + - name: Run tests shell: bash -l {0} run: python -m pytest --cov=umpost --cov-report=xml -s test diff --git a/pyproject.toml b/pyproject.toml index 27f2f61..9f66ef7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ dependencies = [ [project.scripts] esm1p5_convert_nc = "umpost.conversion_driver_esm1p5:main" +um2nc = "umpost.um2netcdf:main" [tool.versioneer] VCS = "git"