From 03f74b2ef6aeadab424f8700eda7cbad57c49c72 Mon Sep 17 00:00:00 2001 From: Mark Piper Date: Fri, 20 Dec 2024 13:32:14 -0700 Subject: [PATCH] Add tests --- .github/workflows/test.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2eef9c5..1423401 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,9 +41,14 @@ jobs: run: | make install - - name: Test BMI + - name: Test imports + working-directory: ${{ github.workspace }}/examples run: | python -c 'import pymt_heatf' + python -c 'from pymt.models import HeatModelF' + + - name: Test BMI + run: | make test - name: Run examples @@ -126,3 +131,19 @@ jobs: - name: Build and install package run: | make install + + - name: Test imports + working-directory: ${{ github.workspace }}/examples + run: | + python -c 'import pymt_heatf' + python -c 'from pymt.models import HeatModelF' + + - name: Test BMI + run: | + make test + + - name: Run examples + working-directory: ${{ github.workspace }}/examples + run: | + python heatf_ex.py + python pymt_heatf_ex.py