Skip to content

Merge pull request #73 from funkelab/v1.1_cleanup #51

Merge pull request #73 from funkelab/v1.1_cleanup

Merge pull request #73 from funkelab/v1.1_cleanup #51

Workflow file for this run

name: tests
on:
push:
branches: [main]
tags: ["v*"] # Push events to matching v*, i.e. v1.0, v20.15.10
pull_request: {}
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: ${{ matrix.platform }} py${{ matrix.python-version }}
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# these libraries enable testing on Qt on linux and OpenGL on Windows
- uses: pyvista/setup-headless-display-action@v2
with:
qt: true
# note: if you need dependencies from conda, considering using
# setup-miniconda: https://github.com/conda-incubator/setup-miniconda
- name: Install conda dependencies
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
environment-file: conda_config.yml
channel-priority: true
- name: Install pip dependencies
shell: bash -el {0} # this is necessary to activate the conda env
run: |
pip install ".[testing]"
- name: Test with pytest
shell: bash -el {0}
run: |
pytest --color=yes --cov=motile-napari-plugin --cov-report=xml --cov-report=term-missing tests
- name: Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: funkelab/motile-napari-plugin