Add timeouts, name logs per python version.

This commit is contained in:
Matthew Stratford 2021-04-07 23:09:51 +01:00
parent 0f1aee809e
commit 461fc75f2c

View file

@ -6,7 +6,9 @@ jobs:
test-macos: test-macos:
runs-on: macos-latest runs-on: macos-latest
timeout-minutes: 15
strategy: strategy:
fail-fast: false
matrix: matrix:
python-version: [3.7, 3.8, 3.9] python-version: [3.7, 3.8, 3.9]
@ -32,6 +34,7 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with unittest - name: Test with unittest
timeout-minutes: 10
run: | run: |
python -m sounddevice python -m sounddevice
cp config.py.example config.py # We don't need an API config file for these tests. cp config.py.example config.py # We don't need an API config file for these tests.
@ -40,7 +43,7 @@ jobs:
if: ${{ always() }} if: ${{ always() }}
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: Logs name: Logs - Python ${{ matrix.python-version }}
path: | path: |
logs/* logs/*