From 8a187b45b9855a3be5bc7a5c49ed56714655fe84 Mon Sep 17 00:00:00 2001 From: agatha Date: Sun, 10 May 2026 22:45:39 +0000 Subject: [PATCH] CI: Fix uv install and MinIO networking Install uv via official installer script instead of pip (pip not available in the runner environment). Add ~/.local/bin to GITHUB_PATH so uv is on PATH for subsequent steps. MinIO: replace -p 9000:9000 (binds to host, unreachable from job container) with --network container:$(hostname) which joins MinIO to the job container's network namespace, making localhost:9000 resolve correctly. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/pipeline.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 8f57db5..9dd01bd 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -69,7 +69,9 @@ jobs: - uses: actions/checkout@v4 - name: Install uv - run: pip install uv + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Cache uv store uses: actions/cache@v3 @@ -104,7 +106,9 @@ jobs: - uses: actions/checkout@v4 - name: Run Ruff - run: pip install uv && uvx ruff check . + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + ~/.local/bin/uvx ruff check . working-directory: api api-integration: @@ -130,9 +134,9 @@ jobs: - name: Start MinIO run: | docker run -d --name ci-minio \ + --network container:$(hostname) \ -e MINIO_ROOT_USER=minioadmin \ -e MINIO_ROOT_PASSWORD=minioadmin \ - -p 9000:9000 \ quay.io/minio/minio server /data - name: Create MinIO bucket @@ -143,7 +147,9 @@ jobs: /tmp/mc mb local/reactbin-test - name: Install uv - run: pip install uv + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Cache uv store uses: actions/cache@v3