Gpu cellpose4 #4
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-os | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - "*-[0-9]+.*" | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| mvn-verify: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, macos-latest, windows-latest ] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '8' | |
| distribution: 'zulu' | |
| cache: 'maven' | |
| # Linux-only setup: virtual display for headless AWT/Swing tests | |
| - name: Linux dependencies (Xvfb) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y xvfb | |
| Xvfb :99 -screen 0 1280x1024x24 & | |
| echo "DISPLAY=:99" >> $GITHUB_ENV | |
| # Run tests | |
| - name: Run tests with Maven | |
| run: mvn -B verify --file pom.xml |