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