File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments