Threshold Effect Model #28
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
name: Test cases | |
on: | |
push: | |
branches: [ master, '*' ] | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install heta-compiler | |
run: | | |
npm install heta-compiler | |
npx heta --version | |
- name: Scan cases and run tests | |
run: | | |
files=$(find ./cases/*/index*.heta) | |
flag=0 | |
for file in $files; do | |
echo -n "Processing $(basename $file) in directory $(dirname $file)... " | |
npx heta build --export SBML,JSON --skip-updates --units-check -s $(basename $file) $(dirname $file) > /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
echo "ERROR!" | |
flag=1 | |
else | |
echo "OK" | |
fi | |
done | |
if [ $flag -ne 0 ]; then | |
exit 1 | |
fi |