From 8ae1546ab7465c1fb3ec01fc3106a2400601f358 Mon Sep 17 00:00:00 2001 From: pgleeson Date: Wed, 11 Dec 2024 18:41:47 +0000 Subject: [PATCH 1/4] Add script for testing test_all.sh --- .github/workflows/ci_test_all.yml | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci_test_all.yml diff --git a/.github/workflows/ci_test_all.yml b/.github/workflows/ci_test_all.yml new file mode 100644 index 0000000..6a00fe3 --- /dev/null +++ b/.github/workflows/ci_test_all.yml @@ -0,0 +1,43 @@ +name: Test all script + +on: + push: + branches: [ main, development, experimental, test* ] + pull_request: + branches: [ main, development, experimental, test* ] + +jobs: + + build: + name: Testing on ${{ matrix.runs-on }} + runs-on: ${{ matrix.runs-on }} + strategy: + fail-fast: false + matrix: + runs-on: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + + - name: Install HDF5 for pytables on macos-14 + if: ${{ matrix.runs-on == 'macos-latest' }} + run: | + brew install hdf5 + + - name: Install & test package + run: | + python -m pip install --upgrade pip + # pip install 'numpy<2.0.0' # due to lingering issues with other modules & numpy... + ./test_all.sh + + + + + + + - name: Final version info + run: | + pip list + env From 847d888c3f9349d033b1449b47b3fbbb746b146a Mon Sep 17 00:00:00 2001 From: pgleeson Date: Wed, 18 Dec 2024 17:22:57 +0000 Subject: [PATCH 2/4] Minor update --- .github/workflows/ci_test_all.yml | 4 ++-- docs/sphinx/source/api/Contributors.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_test_all.yml b/.github/workflows/ci_test_all.yml index 6a00fe3..a8afa9e 100644 --- a/.github/workflows/ci_test_all.yml +++ b/.github/workflows/ci_test_all.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python + - name: Set up Python uses: actions/setup-python@v5 - name: Install HDF5 for pytables on macos-14 @@ -31,7 +31,7 @@ jobs: python -m pip install --upgrade pip # pip install 'numpy<2.0.0' # due to lingering issues with other modules & numpy... ./test_all.sh - + diff --git a/docs/sphinx/source/api/Contributors.md b/docs/sphinx/source/api/Contributors.md index 8fcb9cc..1f2dcfd 100644 --- a/docs/sphinx/source/api/Contributors.md +++ b/docs/sphinx/source/api/Contributors.md @@ -3,7 +3,7 @@ # Modelspec contributors This page list names and Github profiles of contributors to Modelspec, listed in no particular order. -This page is generated periodically, most recently on 2024-11-06. +This page is generated periodically, most recently on 2024-12-18. - Padraig Gleeson ([@pgleeson](https://github.com/pgleeson)) - Manifest Chakalov ([@mqnifestkelvin](https://github.com/mqnifestkelvin)) From 96e10527ae95e6ad23b2e78688bdabe870d6e020 Mon Sep 17 00:00:00 2001 From: pgleeson Date: Wed, 18 Dec 2024 17:47:36 +0000 Subject: [PATCH 3/4] Also install omv --- .github/workflows/ci_test_all.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_test_all.yml b/.github/workflows/ci_test_all.yml index a8afa9e..6b09af5 100644 --- a/.github/workflows/ci_test_all.yml +++ b/.github/workflows/ci_test_all.yml @@ -30,10 +30,10 @@ jobs: run: | python -m pip install --upgrade pip # pip install 'numpy<2.0.0' # due to lingering issues with other modules & numpy... - ./test_all.sh - + pip install OSBModelValidation + ./test_all.sh From babab5331ef5db3030f8e078dade57696837796d Mon Sep 17 00:00:00 2001 From: pgleeson Date: Wed, 18 Dec 2024 17:53:15 +0000 Subject: [PATCH 4/4] Make sure error code not thrown --- test_all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_all.sh b/test_all.sh index 1c2951f..46e29f2 100755 --- a/test_all.sh +++ b/test_all.sh @@ -54,4 +54,4 @@ cd .. ## Format all file -pre-commit run --all-files +/bin/bash -c 'pre-commit run --all-files; echo Finished running pre-commit!' # Note: prevents error code when reformatting