Skip to content

Restrict numpy version to 1.x since 2.0 crashes. (#27) #107

Restrict numpy version to 1.x since 2.0 crashes. (#27)

Restrict numpy version to 1.x since 2.0 crashes. (#27) #107

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Pytest GPTSwarm
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
pytest_test:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Checkout LFS objects
run: git lfs pull
- name: Set up Python environment and install dependencies
uses: actions/setup-python@v3
with:
python-version: "3.10"
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ hashFiles('pyproject.toml') }}
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with=dev
- name: Test with pytest
env:
GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}"
GOOGLE_CSE_ID: "${{ secrets.GOOGLE_CSE_ID }}"
run: |
poetry run coverage run -m pytest -s -m mock_llm
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2