add tests workflow

This commit is contained in:
makaveli10
2024-02-07 23:33:49 +05:30
parent 444ce63440
commit ca2634bbb6
+35
View File
@@ -0,0 +1,35 @@
name: Tests
on:
pull_request:
branches: [ main ]
types: [opened, synchronize, reopened]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, 3.10]
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y ffmpeg portaudio19-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/server.txt
pip install -r requirements/client.txt
- name: Run Tests
run: |
python -m unittest discover -s tests