-
Notifications
You must be signed in to change notification settings - Fork 3.5k
43 lines (32 loc) · 1.02 KB
/
unitest.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
42
43
name: Unit Test
on: [ push, pull_request ]
jobs:
build:
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, 'chore(format): ') && !contains(github.event.head_commit.message, 'chore(env): ')"
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
os: [ubuntu-latest]
fail-fast: true
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependents
run: |
sudo apt-get install -y portaudio19-dev python3-pyaudio
- name: Create venv
run: python3 -m venv .venv
- name: Activate venv
run: |
. .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Test Install
run: pip install .
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Run Test
run: tests/testall.sh