Upgrade Together and Uvicorn packages #2256
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: Python Application | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| environment: Scheduled Testing | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| run: pipx install uv | |
| - name: Check lock file and sync dependencies | |
| run: uv sync --group dev --locked --no-cache | |
| - name: Lint formatting | |
| run: uv run black --check . | |
| - name: Test with pytest | |
| run: uv run pytest | |
| - name: Run mypy | |
| run: uv run mypy --follow-imports silent --exclude modelbench src/modelgauge |