Skip to content

Commit 5fc21a7

Browse files
authored
Merge pull request #73 from daily-co/github-unittests-workflow
github: add workflow for unit tests
2 parents 85e66dd + cc05429 commit 5fc21a7

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/tests.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: test
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- "**"
11+
paths-ignore:
12+
- "docs/**"
13+
14+
concurrency:
15+
group: build-test-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
test:
20+
name: "Unit and Integration Tests"
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: '3.10'
28+
- name: Install system packages
29+
run: sudo apt-get install -y portaudio19-dev
30+
- name: Install basic dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install -r requirements.txt
34+
- name: Build project
35+
run: |
36+
python -m build
37+
- name: Install project and other dependencies
38+
run: |
39+
pip install --editable .
40+
- name: Test with pytest
41+
run: |
42+
pip install pytest
43+
pytest --doctest-modules --ignore-glob="*to_be_updated*" src/dailyai

0 commit comments

Comments
 (0)