-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (34 loc) · 991 Bytes
/
codetest.yml
File metadata and controls
36 lines (34 loc) · 991 Bytes
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
name: Lint, test and notify
permissions:
contents: read
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
- name: Install Python dependencies
run: uv sync --all-extras
- name: Print environment for debugging
run: |
uv run python --version
uv pip list
- name: Analysing the code with Flake8
run: uv run flake8
- name: Type checking with mypy
run: uv run mypy
- name: Run tests with pytest
run: uv run pytest