Skip to content

Commit a627e32

Browse files
add CompileInput test (assumed to fail)
1 parent 4193ccd commit a627e32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/examples.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
shell: bash
3232
- run: pip3 install -r https://raw.githubusercontent.com/Funz/Funz.py/master/requirements.txt
3333
- run: pip3 install git+https://github.com/Funz/Funz.py
34-
- run: python3 -c "import Funz; Funz.installDesign('GradientDescent')" > ${{matrix.os}}-Python${{matrix.Python}}/install.out
34+
- run: python3 -c "import Funz, os, numpy; Funz.CompileInput(model = 'Python',input_files = os.path.join(Funz.FUNZ_HOME,'samples','branin.py'),input_values = {'x1':numpy.arange(0,1,0.2),'x2':numpy.arange(0,1,0.2)},output_dir='${{matrix.os}}-Python${{matrix.Python}}/CompileInput')" > ${{matrix.os}}-Python${{matrix.Python}}/CompileInput.out
3535
shell: bash
3636
- if: matrix.os == 'windows-latest'
3737
run: python3 -c "import Funz, os, re; f=open(os.path.join(Funz.FUNZ_HOME,'calculator.xml'), 'r+'); text = f.read(); text = re.sub('.sh', '.bat', text); f.seek(0); f.write(text); f.truncate()" > ${{matrix.os}}-Python${{matrix.Python}}/install.out
@@ -40,6 +40,8 @@ jobs:
4040
shell: bash
4141
- run: python3 -c "import Funz, os, numpy; Funz.Run(model = 'Python',input_files = os.path.join(Funz.FUNZ_HOME,'samples','branin.py'),input_variables = {'x1':numpy.arange(0,1,0.2),'x2':numpy.arange(0,1,0.2)},all_combinations=True,output_expressions = 'z', archive_dir='${{matrix.os}}-Python${{matrix.Python}}/Run')" > ${{matrix.os}}-Python${{matrix.Python}}/Run.out
4242
shell: bash
43+
- run: python3 -c "import Funz; Funz.installDesign('GradientDescent')" > ${{matrix.os}}-Python${{matrix.Python}}/install.out
44+
shell: bash
4345
- run: python3 -c "import Funz, os, numpy; Funz.Design(fun=lambda X:abs(X['x1']*X['x2']),fun_control={'vectorize':'for'},design = 'GradientDescent', options = {'max_iterations':10},input_variables = {'x1':'[0,1]','x2':'[1,2]'}, archive_dir='${{matrix.os}}-Python${{matrix.Python}}/Design')" > ${{matrix.os}}-Python${{matrix.Python}}/Design.out
4446
shell: bash
4547
- run: python3 -c "import Funz, os, numpy; Funz.RunDesign(model='Python',input_files=os.path.join(Funz.FUNZ_HOME,'samples','branin.py'),output_expressions='z', design = 'GradientDescent',design_options = {'max_iterations':10},input_variables = {'x1':'[0,1]','x2':'[0,1]'}, archive_dir='${{matrix.os}}-Python${{matrix.Python}}/RunDesign')" > ${{matrix.os}}-Python${{matrix.Python}}/RunDesign.out

0 commit comments

Comments
 (0)