-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (46 loc) · 1.28 KB
/
pya-ci.yaml
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
42
43
44
45
46
47
48
name: Pya
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
unit-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Install portaudio Ubuntu
if: matrix.os == 'ubuntu-latest'
shell: bash -l {0}
run: sudo apt-get install portaudio19-dev
- name: Install portaudio MacOS
if: matrix.os == 'macos-latest'
shell: bash -l {0}
run: brew install portaudio
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test-env
environment-file: ci/test-environment.yml
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- name: Set up depen
shell: bash -l {0}
run: |
conda init bash
conda activate test-env
conda install ffmpeg coverage python-coveralls --file=requirements_remote.txt --file=requirements_test.txt
# pyaudio is not yet available on conda
pip install -r requirements.txt
- name: Run tests
shell: bash -l {0}
run: |
conda activate test-env
pytest --cov pya/