-
Notifications
You must be signed in to change notification settings - Fork 230
37 lines (30 loc) · 1.08 KB
/
on-pull-request-workflow.yml
File metadata and controls
37 lines (30 loc) · 1.08 KB
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
name: On pull request
on: [pull_request] # set to this value when pushing in prod
#on: [push] # set this one for dev the ci/cd
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: |
sudo apt update
sudo apt install -y \
git python3-dev libsmpeg0 libttspico-utils flac \
libffi-dev libssl-dev portaudio19-dev build-essential \
libatlas3-base mplayer wget vim sudo locales alsa-base alsa-utils \
pulseaudio-utils libasound2-plugins python3-pyaudio libasound-dev \
libportaudio2 libportaudiocpp0 ffmpeg cargo
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependencies
run: |
pip3 install -r install/files/python_requirements.txt
- name: Run Tests
run: |
python3 -m unittest discover