Use the segmentation label as the node id (toolbox v0.4.0) #136
This file contains 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: 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, macos-latest] # windows-latest, temporarily disabled until ilpy is fixed | |
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 }} | |
# 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-tracker --cov-report=xml --cov-report=term-missing tests | |
- name: Coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: funkelab/motile-tracker |