Skip to content

Commit 9ef4dcc

Browse files
fix cpp test
1 parent f9748d4 commit 9ef4dcc

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
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
@@ -50,6 +50,24 @@ jobs:
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 .
@@ -60,7 +78,7 @@ jobs:
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

0 commit comments

Comments
 (0)