-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (32 loc) · 861 Bytes
/
test.yaml
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
name: Test
on:
pull_request:
branches: [main, dev]
env:
SPEECH_REGION: ${{ secrets.SPEECH_REGION }}
SPEECH_KEY: ${{ secrets.SPEECH_KEY }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: "Install required packages"
run: |
sudo apt-get update
sudo apt-get install build-essential ca-certificates libasound2-dev libssl-dev wget
- name: "Checkout the repository"
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: "Install dependencies"
run: |
python3 -m pip install uv
python3 -m uv pip install . pytest
- name: "Test with pytest"
run: |
pytest