Skip to content

Merge pull request #27 from sonos/develop #149

Merge pull request #27 from sonos/develop

Merge pull request #27 from sonos/develop #149

Workflow file for this run

name: tests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install libsndfile1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage setuptools
- name: Run tests
run: coverage run setup.py test
- name: Run coveralls
uses: AndreMiras/coveralls-python-action@v20201129
with:
parallel: true
flag-name: unittest
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
python setup.py develop
- name: Run tests
run: tox
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Check install
run: |
python setup.py develop
python setup.py install
coverage:
needs: linux
runs-on: ubuntu-latest
steps:
- name: coveralls
uses: AndreMiras/coveralls-python-action@v20201129
with:
parallel-finished: true