Update openai requirement from <2.0.0,>=1.11.0 to >=1.11.0,<3.0.0 (#332) #641
This file contains hidden or 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: Pytest in docker | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release | |
| - dev | |
| pull_request: | |
| branches: | |
| - main | |
| - release | |
| jobs: | |
| Pytest: | |
| strategy: | |
| max-parallel: 5 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Docker Compose | |
| run: docker compose -f .devcontainer/docker-compose.yml up -d | |
| - name: Run tests with local backend (default) | |
| run: docker compose -f .devcontainer/docker-compose.yml run --rm -u root -v /home/runner/work/sotopia/sotopia:/workspaces/sotopia devcontainer /bin/sh -c "cd /workspaces/sotopia; ls; uv sync --extra test --extra api; uv run pytest --ignore tests/cli --cov=. --cov-report=xml" | |
| - name: Run database tests with Redis backend | |
| run: docker compose -f .devcontainer/docker-compose.yml run --rm -u root -v /home/runner/work/sotopia/sotopia:/workspaces/sotopia devcontainer /bin/sh -c "cd /workspaces/sotopia; SOTOPIA_STORAGE_BACKEND=redis uv run pytest tests/database/ --ignore=tests/database/test_local_storage.py -v" | |
| - name: Upload coverage report to Codecov | |
| uses: codecov/[email protected] | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |