Skip to content

changepoint: Add labels_from_indices function #104

changepoint: Add labels_from_indices function

changepoint: Add labels_from_indices function #104

Workflow file for this run

# SPDX-FileCopyrightText: 2021 Louisa Marie Kienesberger <[email protected]>
# SPDX-FileCopyrightText: 2022 Lukas Schrangl <[email protected]>
#
# SPDX-License-Identifier: BSD-3-Clause
name: sdt-python test suite
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macOS, windows]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
with:
use-mamba: true
miniforge-version: latest
miniforge-variant: Mambaforge
environment-file: tests/conda-env.yml
- name: Conda info
shell: pwsh
run: conda info
- name: Lint with flake8
shell: pwsh
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
shell: pwsh
run: |
pytest -v tests/