build #380
This file contains hidden or 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: 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-13, 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 |