Skip to content

Commit 04d8fc5

Browse files
committed
add tests
1 parent 53bee2e commit 04d8fc5

File tree

4 files changed

+72
-1
lines changed

4 files changed

+72
-1
lines changed

.github/workflows/CI.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
test:
11+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
version:
17+
- '1.10'
18+
- '1.11'
19+
- '1.12'
20+
os:
21+
- ubuntu-latest
22+
- macos-latest
23+
arch:
24+
- x64
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: julia-actions/setup-julia@v1
29+
with:
30+
version: ${{ matrix.version }}
31+
arch: ${{ matrix.arch }}
32+
33+
- uses: actions/cache@v3
34+
env:
35+
cache-name: cache-artifacts
36+
with:
37+
path: ~/.julia/artifacts
38+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
39+
restore-keys: |
40+
${{ runner.os }}-test-${{ env.cache-name }}-
41+
${{ runner.os }}-test-
42+
${{ runner.os }}-
43+
44+
- uses: julia-actions/julia-buildpkg@v1
45+
46+
- uses: julia-actions/julia-runtest@v1
47+

.github/workflows/TagBot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: TagBot
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
jobs:
8+
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: JuliaRegistries/TagBot@v1
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
lookback: 3

Project.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "CopernicusMarine"
22
uuid = "cd43e856-93a3-40c8-bc9e-6146cdce14fa"
3-
authors = ["Gregory Wagner <[email protected]>"]
3+
authors = ["NumericalEarth and contributors"]
44
version = "0.1.0"
55

66
[deps]
@@ -10,3 +10,9 @@ PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"
1010
[compat]
1111
CondaPkg = "0.2.31"
1212
PythonCall = "0.9.27"
13+
14+
[extras]
15+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
16+
17+
[targets]
18+
test = ["Test"]

test/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using CopernicusMarine, PythonCall, Test
2+
3+
@test CopernicusMarine.copernicusmarine !== Py(nothing)

0 commit comments

Comments
 (0)