Fix: use system python for ARM64
This commit is contained in:
+10
-9
@@ -1,4 +1,4 @@
|
||||
name: Python CI
|
||||
name: Python CI (ARM64 Optimized)
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
@@ -9,18 +9,19 @@ jobs:
|
||||
- name: Checkout mã nguồn
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Cài đặt Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Kiểm tra Python hệ thống
|
||||
run: |
|
||||
echo "✅ Sử dụng Python có sẵn trong runner"
|
||||
python3 --version
|
||||
pip3 --version
|
||||
|
||||
- name: Cài đặt dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
python3 -m pip install --upgrade pip
|
||||
pip3 install -r requirements.txt
|
||||
|
||||
- name: Kiểm tra định dạng mã (Linting)
|
||||
run: ruff check .
|
||||
run: python3 -m ruff check .
|
||||
|
||||
- name: Chạy Unit Tests
|
||||
run: pytest -v
|
||||
run: python3 -m pytest -v
|
||||
Reference in New Issue
Block a user