Update tutorial. #7
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: Build and run tests | |
on: [push] | |
jobs: | |
build: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Build wheels (pure python) | |
run: python setup.py bdist_wheel | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: ./dist/*.whl | |
run: | |
name: Test on ${{ matrix.os }} with python ${{ matrix.python-version }} | |
needs: [build] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, windows-2019, macos-11] | |
python-version: ['3.7', '3.10'] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/download-artifact@v2 | |
with: | |
name: artifact | |
path: built_wheels | |
- name: Install calibur | |
run: python -m pip install --find-links=./built_wheels calibur | |
- name: Install dev dependencies | |
run: python -m pip install coverage trimesh opencv-python-headless | |
- name: Run tests | |
run: python run_tests.py |