From b14ac295cc58dd0b4bc25220dc7183d56b339592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 18 Mar 2024 15:25:46 -0700 Subject: [PATCH] github: add workflow for unit tests --- .github/workflows/tests.yaml | 38 ++++++++++++++++++++++++++++++++++++ requirements-full.txt | 8 ++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/tests.yaml create mode 100644 requirements-full.txt diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 000000000..aafe71e65 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,38 @@ +name: test + +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + branches: + - "**" + paths-ignore: + - "docs/**" + +concurrency: + group: build-test-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + test: + name: "Unit and Integration Tests" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install system packages + run: sudo apt-get install -y portaudio19-dev + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r requirements-full.txt + - name: Test with pytest + run: | + pip install pytest + pytest src/dailyai/tests/ diff --git a/requirements-full.txt b/requirements-full.txt new file mode 100644 index 000000000..ee69c38a8 --- /dev/null +++ b/requirements-full.txt @@ -0,0 +1,8 @@ +anthropic==0.20.0 +daily-python==0.7.1 +deepgram-sdk==3.2.1 +numpy==1.26.4 +openai==1.14.1 +pyaudio==0.2.14 +torch==2.2.1 +torchaudio==2.2.1