Skip to content

Commit 34f6ad6

Browse files
committed
up
0 parents  commit 34f6ad6

File tree

6 files changed

+72
-0
lines changed

6 files changed

+72
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Manifest.toml

Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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"

src/PythonCallTest.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module PythonCallTest
2+
3+
# Write your package code here.
4+
5+
end

test/Project.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[deps]
2+
CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab"
3+
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"
4+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

test/runtests.jl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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

0 commit comments

Comments
 (0)