Skip to content

build

build #395

Workflow file for this run

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