Add GitHub CIs for patho-sam APIs and segmentation interface #1
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - dev | |
| tags: | |
| - "v*" | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: ${{ matrix.os }} py${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 90 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup micromamba | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: environment.yaml | |
| create-args: >- | |
| python=${{ matrix.python-version }} | |
| pytest | |
| - name: Install slideio | |
| shell: bash -el {0} | |
| run: pip install slideio | |
| - name: Install patho-sam | |
| shell: bash -el {0} | |
| run: pip install --no-deps -e . | |
| - name: Run tests | |
| shell: bash -el {0} | |
| run: pytest test/ -v |