-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (41 loc) · 1.07 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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