fix pipline #2782
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- v* | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
# We could test the Python wheels using cibuildwheel but we prefer to run the tests outside | ||
# the build environment to ensure wheels correctly embed all dependencies. | ||
test-python-wheels: | ||
needs: [build-python-wheels] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, macos-11, windows-2019] | ||
steps: | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- uses: actions/checkout@v3 | ||
- name: Prepare test environment | ||
shell: bash | ||
run: | | ||
./python/tools/prepare_test_environment.sh | ||
- name: Download Python wheels | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-wheels | ||
- name: Install wheel | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
pip install *cp38*manylinux*x86_64.whl | ||
- name: Install wheel | ||
if: startsWith(matrix.os, 'macos') | ||
run: | | ||
pip install *cp38*macosx*x86_64.whl | ||
- name: Install wheel | ||
if: startsWith(matrix.os, 'windows') | ||
shell: bash | ||
run: | | ||
pip install *cp38*win*.whl | ||
- name: Run tests | ||
shell: bash | ||
run: | | ||
pytest -v python/tests/ |