File tree Expand file tree Collapse file tree 1 file changed +38
-10
lines changed
Expand file tree Collapse file tree 1 file changed +38
-10
lines changed Original file line number Diff line number Diff line change 1111 - master
1212
1313jobs :
14+ package :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v2
18+ with :
19+ fetch-depth : 1
20+ submodules : true
21+ - name : Set up Python 3.9
22+ uses : actions/setup-python@v2
23+ with :
24+ python-version : 3.9
25+ - name : Install dependencies
26+ run : |
27+ python -m pip install --upgrade pip
28+ python -m pip install build twine
29+ - name : build package
30+ run : |
31+ python -m build --sdist .
32+ - name : twine test
33+ run : |
34+ python -m twine check dist/*
35+ - name : Upload package
36+ uses : actions/upload-artifact@v1
37+ with :
38+ name : python-packages
39+ path : dist
40+ - name : List
41+ run : |
42+ ls -la dist
43+
44+
1445 build :
46+ needs : package
1547 strategy :
1648 matrix :
1749 os : [ubuntu-latest, macos-latest]
1850 python-version : ['3.7', '3.10']
1951 runs-on : ${{ matrix.os }}
2052 steps :
21- - uses : actions/checkout@v3
53+ - uses : actions/download-artifact@v2
54+ id : download
2255 with :
23- fetch-depth : 1
24- submodules : true
56+ name : python-packages
2557 - name : Set up Python ${{ matrix.python-version }}
26- uses : actions/setup-python@v2
58+ uses : actions/setup-python@v3
2759 with :
2860 python-version : ${{ matrix.python-version }}
2961 - name : Install tools
3062 run : |
3163 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
64+ - name : Build and Install SimpleITK Package
3765 run : |
38- ls -la dist
66+ python -m pip install ${{steps.download.outputs.download-path}}/SimpleITK-*.tar.gz
You can’t perform that action at this time.
0 commit comments