File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 2525 with :
2626 path : dist/*.tar.gz
2727
28- test :
28+ python_test :
2929 name : Test SDist
3030 needs : [build]
3131 runs-on : ubuntu-latest
5050 rm -rf dist
5151 - name : Test installed SDist
5252 run : pytest test/*.py
53+
54+ cpp_test :
55+ name : Test SDist
56+ needs : [ build ]
57+ runs-on : ubuntu-latest
58+ strategy :
59+ fail-fast : false
60+ steps :
61+ - uses : actions/checkout@v3
62+ with :
63+ submodules : recursive
64+ - name : Set up Python
65+ uses : actions/setup-python@v4
66+ with :
67+ python-version : ' 3.x'
68+ - name : Install dependencies
69+ run : |
70+ pip install -r requirements.txt
5371 - name : Build C++ package
5472 run : |
5573 cmake -DBUILD_TEST=ON -DCMAKE_BUILD_TYPE=Debug .
6078
6179 upload :
6280 name : Upload to PyPI
63- needs : [build, test ]
81+ needs : [build, python_test, cpp_test ]
6482 runs-on : ubuntu-latest
6583 steps :
6684 - uses : actions/download-artifact@v3
You can’t perform that action at this time.
0 commit comments