Create add_to_project.yml #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test changes that have been pushed to the master | |
name: BMI Unit Testing and Model Standalone | |
# Controls when the action will run. | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
#this will allow a manual trigger | |
workflow_dispatch: | |
#env: | |
#LINUX_NUM_PROC_CORES: 2 | |
#MACOS_NUM_PROC_CORES: 3 | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# Run general unit tests in linux environment | |
test_unit: | |
# The type of runner that the job will run on | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] # windows will fail(?) | |
python-version: ['3.10', 3.11, 3.12] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Checkout the commit | |
uses: actions/checkout@v4 | |
- name: setup python # ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . | |
# RUN MAIN BMI UNIT TEST | |
- name: Run BMI Unit Test LSTM | |
run: python lstm/run_bmi_unit_test.py | |
# RUN MAIN STANDALONE SCRIPT | |
- name: Run Standalone LSTM | |
run: python -m lstm |