From f63665dc92ab407eceaa4f568c6c6bf9488b74b3 Mon Sep 17 00:00:00 2001 From: Yuri Prezument <667418+yprez@users.noreply.github.com> Date: Wed, 4 Jun 2025 10:37:06 +0300 Subject: [PATCH] Add CI workflow to run tests --- .github/workflows/tests.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..274d506 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Install system dependencies + run: sudo apt-get update && sudo apt-get install -y portaudio19-dev + + - name: Install uv + run: pipx install uv + + - name: Install project dependencies + run: uv sync + + - name: Run ruff + run: uv run ruff check . + continue-on-error: true + + - name: Run tests + env: + PYNPUT_BACKEND: dummy + QT_QPA_PLATFORM: offscreen + run: uv run pytest