Adding ability to view force-distance curves as well as draw a profile line #48
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: Run the pytest test suite | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - ready_for_review | |
| - reopened | |
| - synchronize | |
| paths: | |
| - "**.csv" | |
| - "**.npy" | |
| - "**.out" | |
| - "**.pkl" | |
| - "**.png" | |
| - "**.py" | |
| - "**.toml" | |
| - "**.yaml" | |
| jobs: | |
| build: | |
| name: Run pytest (${{ matrix.platform }} ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| platform: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ["3.10", "3.11"] | |
| env: | |
| QT_QPA_PLATFORM: offscreen | |
| LIBGL_ALWAYS_SOFTWARE: "1" | |
| QT_OPENGL: software | |
| XDG_RUNTIME_DIR: /tmp | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup PyVista headless display with Qt support | |
| uses: pyvista/setup-headless-display-action@v4 | |
| with: | |
| qt: true | |
| - name: Setup Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Upgrade pip/setuptools/virtualenv and install test dependencies | |
| run: | | |
| pip install --upgrade pip setuptools virtualenv | |
| virtualenv --upgrade-embed-wheels | |
| # virtualenv --reset-app-data | |
| pip install -e .[tests] | |
| - name: Test with pytest | |
| run: | | |
| pytest --cov=src/napari_topostats -x | |
| - name: Determine coverage | |
| run: | | |
| coverage xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |