Test python package in build step.
@@ -93,7 +93,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [windows-latest, macos-10.15]
+ os: [windows-latest, macos-10.15, macos-11]
python: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
@@ -132,6 +132,15 @@ jobs:
shell: bash
run: python setup.py bdist_wheel
+ - name: Install
+ working-directory: ${{runner.workspace}}/build
+ shell: bash
+ run: find dist -name "*.whl" -exec python -m pip install {} \;
+
+ - name: Test
+ shell: bash
+ run: python $GITHUB_WORKSPACE/test/python/tests.py
+
- name: Deploy
uses: actions/upload-artifact@v2
with:
@@ -149,7 +158,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- - name: Install Dependencies
+ - name: Install System Tools
shell: bash
run: |
choco install swig
