From 7910f8405f16aba9570d005d9ecb20cf419fd106 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 16 Feb 2021 22:44:12 -0800 Subject: [PATCH] add github action to test that the conversion script runs --- .github/workflows/test.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 000000000..debe80411 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,21 @@ +name: Test JSON to Netcdf conversion + +on: + push: + branches-ignore: [master] + + pull_request: + branches: [master, odf_transform] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: "3.x" # Version range or exact version of a Python version to use, using SemVer's version range syntax + architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified + - run: python -m pip install -e cioos_data_transform/ios_data_transform + - working-directory: odf_transform/test + run: python test_odf.py