Skip to content

build

build #253

Workflow file for this run

name: build
on:
push:
paths-ignore:
- doc/**
- LICENSE.txt
- README.rst
- screenshot.png
- .readthedocs.yml
- .create_screenshot
- .gitignore
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
install-and-test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-13, ubuntu-latest, windows-latest]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Set up development conda environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: sonify
environment-file: .environment.yml
miniforge-variant: Mambaforge
use-mamba: true
- name: Check formatting
run: |
black --skip-string-normalization --check .
isort --conda-env sonify --profile black --check-only .
- name: Run tests
run: pytest --mpl --capture=no --cov=sonify --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3