chore(deps): lock file maintenance #1371
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: Run Continuous Integration | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| ci: | |
| runs-on: "ubuntu-latest" | |
| timeout-minutes: 25 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.3.0 | |
| with: | |
| version: "0.11.26" | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: "pyproject.toml" | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Configure environment | |
| run: uv run cli init-workspace | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Build and cache Docker image | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| target: development | |
| load: true | |
| tags: | | |
| radis_dev-web:latest | |
| radis_dev-default_worker:latest | |
| radis_dev-llm_worker:latest | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Start Docker containers | |
| run: uv run cli compose-up -- --detach --no-build | |
| - name: Run linting | |
| # https://github.com/actions/runner/issues/241#issuecomment-745902718 | |
| shell: 'script -q -e -c "bash {0}"' | |
| run: uv run cli lint | |
| - name: Run tests | |
| shell: 'script -q -e -c "bash {0}"' | |
| run: uv run cli test -- --cov | |
| - name: Stop Docker containers | |
| if: ${{ always() }} | |
| run: uv run cli compose-down |