From d59c072ead95c67c4056a21ad5f210de171e93b4 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 | 36 ++++++++++++++++++++++++++++++++++++ requirements-full.txt | 3 +++ 2 files changed, 39 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..3946ddba7 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,36 @@ +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 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 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 diff --git a/requirements-full.txt b/requirements-full.txt new file mode 100644 index 000000000..2a0dc8c56 --- /dev/null +++ b/requirements-full.txt @@ -0,0 +1,3 @@ +anthropic==0.20.0 +deepgram-sdk==3.2.1 +openai==1.14.1