Fix: install pip3 via apt-get
This commit is contained in:
@@ -9,16 +9,18 @@ jobs:
|
|||||||
- name: Checkout mã nguồn
|
- name: Checkout mã nguồn
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Kiểm tra Python hệ thống
|
- name: Cài đặt Python và Pip
|
||||||
run: |
|
run: |
|
||||||
echo "✅ Sử dụng Python có sẵn trong runner"
|
echo "✅ Cập nhật hệ thống và cài đặt pip..."
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y python3-pip
|
||||||
python3 --version
|
python3 --version
|
||||||
pip3 --version
|
pip3 --version
|
||||||
|
|
||||||
- name: Cài đặt dependencies
|
- name: Cài đặt dependencies
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
pip3 install -r requirements.txt
|
python3 -m pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Kiểm tra định dạng mã (Linting)
|
- name: Kiểm tra định dạng mã (Linting)
|
||||||
run: python3 -m ruff check .
|
run: python3 -m ruff check .
|
||||||
|
|||||||
Reference in New Issue
Block a user