Refactored test cases #241
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: Test Unpinned Dependencies | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build_wheels: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
python-version: ["3.12"] | |
name: Build wheel on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set environment variables | |
# needed for testing the napari plugin | |
if: matrix.os == 'ubuntu-latest' | |
run: echo "QT_QPA_PLATFORM=offscreen" >> $GITHUB_ENV | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
name: Install Python | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Developer Dependencies | |
run: pip install .[dev] | |
- name: List dependencies | |
run: pip freeze | |
- name: Pytest | |
run: pytest -n auto |