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