Bump version for 0.0.13 release #122
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
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: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
id: setup_python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Cache virtual environment | |
uses: actions/cache@v3 | |
with: | |
key: venv-${{ runner.os }}-${{ steps.setup_python.outputs.python-version}}-${{ hashFiles('dev-requirements.txt') }}-${{ hashFiles('test-requirements.txt') }} | |
path: .venv | |
- name: Setup virtual environment | |
run: | | |
python -m venv .venv | |
- name: Install dependencies | |
run: | | |
source .venv/bin/activate | |
echo "Upgrading pip..." | |
python -m pip install --upgrade pip | |
pip --version | |
echo "Installing dev and test requirements..." | |
pip install -r dev-requirements.txt -r test-requirements.txt | |
echo "Current Google packages:" | |
pip freeze | grep google | |
echo "Uninstalling existing Google packages..." | |
pip uninstall -y google-generativeai google-genai google-ai-generativelanguage | |
echo "Installing google-genai..." | |
pip install "google-genai==0.7.0" | |
echo "Google packages after google-genai install:" | |
pip freeze | grep google | |
echo "Installing pipecat-ai..." | |
pip install "pipecat-ai[google,openai,anthropic]" | |
echo "Google packages after pipecat-ai install:" | |
pip freeze | grep google | |
echo "Installing package in editable mode..." | |
pip install -e . | |
echo "Final Google packages:" | |
pip freeze | grep google | |
echo "Python path:" | |
python -c "import sys; print('\n'.join(sys.path))" | |
echo "Testing imports..." | |
python -c "from google import genai; print('Successfully imported genai')" | |
python -c "import google.generativeai; print('Successfully imported generativeai')" | |
- name: Test with pytest | |
run: | | |
source .venv/bin/activate | |
pytest tests/ --cov=pipecat_flows |