Эх сурвалжийг харах

🔧 chore(ci): update python build workflow to speed up

- update runner image to python 3.12 bookworm-slim for better compatibility
- use uv instead of pip
awwaawwa 1 жил өмнө
parent
commit
e214751558

+ 2 - 3
.github/workflows/python-build.yml

@@ -6,7 +6,7 @@ on:
 
 
 jobs:
 jobs:
   build:
   build:
-    runs-on: ubuntu-latest
+    runs-on: ghcr.io/astral-sh/uv:python3.12-bookworm-slim
 
 
     steps:
     steps:
     - uses: actions/checkout@v4
     - uses: actions/checkout@v4
@@ -17,8 +17,7 @@ jobs:
 
 
     - name: Install dependencies
     - name: Install dependencies
       run: |
       run: |
-        pip3 install -U pip
-        pip3 install -e .[dev]
+        uv pip install -e .[dev]
 
 
     - name: Test - Code format
     - name: Test - Code format
       run: |
       run: |