Merge PR #14 | Test Linux and Windows on CI #24
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: Build and Test Package | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Miniconda | |
| uses: conda-incubator/setup-miniconda@v2 | |
| with: | |
| environment-file: stardist/environment-dev.yml | |
| activate-environment: run-stardist-dev | |
| auto-update-conda: true | |
| - name: Remove duplicate OpenMP runtime on Windows | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| # This file is where Intel-MKL puts its OpenMP runtime. | |
| # Deleting it here leaves only TensorFlow’s copy, avoiding the dup‐DLL error. | |
| $dll = Join-Path $env:CONDA_PREFIX 'Library\bin\libiomp5md.dll' | |
| if (Test-Path $dll) { | |
| Remove-Item $dll -Force | |
| } | |
| - name: Run integration test (via conda run) | |
| run: conda run -n run-stardist-dev pytest -s stardist/tests/test_integration.py |