-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (40 loc) · 1.04 KB
/
unitest.yml
File metadata and controls
49 lines (40 loc) · 1.04 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
38
39
40
41
42
43
44
45
46
47
48
49
name: Run Unit Tests
on:
push:
branches:
- 'main'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y portaudio19-dev python3-pyaudio ffmpeg
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 2.0.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: |
poetry install --no-interaction
- name: Run unit tests
run: |
poetry run pytest --log-cli-level=DEBUG -s
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-${{ runner.os }}
path: pytest-results/