Skip to content

Commit 141439e

Browse files
authored
test
1 parent c30f523 commit 141439e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test_main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- "*-[0-9]+.*"
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
build-and-run:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [macos-latest, macos-11]
19+
fail-fast: false
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v2
23+
- name: Set up JDK 11
24+
uses: actions/setup-java@v3
25+
with:
26+
distribution: 'zulu' # See 'Supported distributions' for available options
27+
java-version: '11'
28+
- name: Generate Classpath (Unix)
29+
run: |
30+
mvn clean install org.apache.maven.plugins:maven-shade-plugin:3.2.4:shade -Dshade.mainClass=io.bioimage.modelrunner.pytorch.PytorchInterface
31+
32+
33+
- name: Run Specific Class (Unix)
34+
shell: bash
35+
run: |
36+
java -cp $JAR_PATH io.bioimage.modelrunner.pytorch.PytorchInterface

0 commit comments

Comments
 (0)