Skip to content

Commit cc5229e

Browse files
committed
Add github action to build package
Skipping Windows due to a build issue reporting that ITK source path is too long.
1 parent 11c59c2 commit cc5229e

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Python Test and Package
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- 'v*'
9+
pull_request:
10+
branches:
11+
- master
12+
13+
jobs:
14+
build:
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest]
18+
python-version: ['3.7', '3.10']
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 1
24+
submodules: true
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v2
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- name: Install tools
30+
run: |
31+
python -m pip install --upgrade pip
32+
python -m pip install build
33+
- name: Build Package
34+
run: |
35+
python -m build
36+
- name: List
37+
run: |
38+
ls -la dist

SimpleITK

Submodule SimpleITK updated 394 files

0 commit comments

Comments
 (0)