File tree Expand file tree Collapse file tree 6 files changed +72
-0
lines changed Expand file tree Collapse file tree 6 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches : [main]
5
+ tags : ["*"]
6
+ pull_request :
7
+ branches : [main]
8
+ concurrency :
9
+ # Skip intermediate builds: always.
10
+ # Cancel intermediate builds: only if it is a pull request build.
11
+ group : ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
13
+ jobs :
14
+ test :
15
+ name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16
+ runs-on : ${{ matrix.os }}
17
+ strategy :
18
+ fail-fast : false
19
+ matrix :
20
+ version :
21
+ - ' 1.9'
22
+ - ' 1'
23
+ - ' nightly'
24
+ os :
25
+ - ubuntu-latest
26
+ - macOS-latest
27
+ - windows-latest
28
+ arch :
29
+ - default
30
+ steps :
31
+ - uses : actions/checkout@v4
32
+ - uses : julia-actions/setup-julia@v2
33
+ with :
34
+ version : ${{ matrix.version }}
35
+ arch : ${{ matrix.arch }}
36
+ - uses : julia-actions/cache@v2
37
+ - uses : julia-actions/julia-buildpkg@v1
38
+ - uses : julia-actions/julia-runtest@v1
Original file line number Diff line number Diff line change
1
+ Manifest.toml
Original file line number Diff line number Diff line change
1
+ name = " PythonCallTest"
2
+ uuid = " a3010358-28ce-4230-b6cc-0b9f345843c2"
3
+ authors = [" icweaver <weaveric@gmail.com> and contributors" ]
4
+ version = " 1.0.0-DEV"
5
+
6
+ [compat ]
7
+ julia = " 1.9"
Original file line number Diff line number Diff line change
1
+ module PythonCallTest
2
+
3
+ # Write your package code here.
4
+
5
+ end
Original file line number Diff line number Diff line change
1
+ [deps ]
2
+ CondaPkg = " 992eb4ea-22a4-4c89-a5bb-47a3300528ab"
3
+ PythonCall = " 6099a3de-0909-46bc-b1f4-468b9a2dfc0d"
4
+ Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
Original file line number Diff line number Diff line change
1
+ using PythonCallTest
2
+ using Test
3
+
4
+ using PythonCall, CondaPkg
5
+ CondaPkg. add (" numpy" )
6
+
7
+ @testset " PythonCallTest.jl" begin
8
+ @pyexec """
9
+ global np
10
+
11
+ import numpy as np
12
+
13
+ z = np.sqrt(3**2 + 4**2)
14
+ """ => z:: Float64
15
+
16
+ @test z === 5.0
17
+ end
You can’t perform that action at this time.
0 commit comments