Skip to content

Commit

Permalink
modify tests to work with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
taylormcd committed Oct 25, 2021
1 parent ded81d9 commit 0e60189
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
run: sudo apt-get install -y csh
- name: Check out repository
uses: actions/checkout@v2
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1
- name: Set up Julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1
- name: Generate Build Script
uses: julia-actions/julia-buildpkg@master
- name: Generate Mex File
Expand Down
3 changes: 1 addition & 2 deletions test/jlmexTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

%% Test 1: jl.mex
a = rand(5,5);
jleval import MATLAB;
jleval double_it(args::Vector{MATLAB.MxArray}) = [2*MATLAB.jvalue(arg) for arg in args];
jleval double_it(args::Vector{Mex.MxArray}) = [2*Mex.jvalue(arg) for arg in args];
result = jl.mex('double_it', a);
result = result{1};
expected_result = 2*a;
Expand Down

0 comments on commit 0e60189

Please sign in to comment.