Bump matplotlib to 3.11.0 #4359
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
| # This workflow will install Python dependencies and run tests | |
| name: Pytest | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "api/**" | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "api/**" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| defaults: | |
| run: | |
| working-directory: api | |
| env: | |
| AUTH_CLIENT_ID: ${{ secrets.AUTH_CLIENT_ID }} | |
| AUTH_API_KEY: ${{ secrets.AUTH_API_KEY }} | |
| FRONTEND_URL: http://localhost:8338 | |
| AUTH_SUCCESS_REDIRECT_URL: / | |
| AUTH_ERROR_REDIRECT_URL: / | |
| AUTH_LOGOUT_REDIRECT_URL: / | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| pip install uv | |
| uv pip install --system pytest pytest-asyncio jsonschema requests pytest-cov shellcheck-py | |
| # Minimal api/pyproject.toml only in CI; drop SDK pin so ../lab-sdk editable install wins | |
| sed -i.bak '/^ "transformerlab==/d' pyproject.toml | |
| uv pip install --system . | |
| mv pyproject.toml.bak pyproject.toml || true | |
| - name: Install lab-sdk in editable mode | |
| run: | | |
| cd ../lab-sdk | |
| uv pip install --system -e . | |
| - name: Test with pytest | |
| run: | | |
| pytest --cov=transformerlab --cov-branch --cov-report=xml -k 'not test_teams' | |
| - name: Upload results to Codecov | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |