Skip to content

Commit

Permalink
Merge pull request #80 from ModECI/experimental
Browse files Browse the repository at this point in the history
 Add script for testing test_all.sh
  • Loading branch information
pgleeson authored Jan 8, 2025
2 parents 0992eaa + babab53 commit a9bfefa
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci_test_all.yml
Original file line number Diff line number Diff line change
@@ -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...
pip install OSBModelValidation
./test_all.sh
- name: Final version info
run: |
pip list
env
2 changes: 1 addition & 1 deletion docs/sphinx/source/api/Contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a9bfefa

Please sign in to comment.