Added server logging for displaying feedback while loading models #3981
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"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| 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 | |
| matrix: | |
| python-version: ["3.11"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| pip install uv | |
| uv pip install --system pytest pytest-asyncio jsonschema requests pytest-cov shellcheck-py | |
| uv pip install --system -r requirements-no-gpu-uv.txt --upgrade --index=https://download.pytorch.org/whl/cpu | |
| - name: Test with pytest | |
| run: | | |
| pytest --cov=transformerlab --cov-branch --cov-report=xml | |
| - name: Upload results to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |