From 39b52fafaca23d322d4f6d5a0686f903dc65c9b9 Mon Sep 17 00:00:00 2001 From: leehk Date: Sun, 13 Apr 2025 20:40:43 +0800 Subject: [PATCH] install python 3.11 --- .github/workflows/develop.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 1b45135..41ea875 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -120,7 +120,10 @@ jobs: run: free -h - name: Run Pytest directly run: | - pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && cd ./app/backend/ && pipenv install && pipenv run python -m pytest --disable-warnings + # install python 3.11 and pip3 + sudo apt-get update + sudo apt-get install -y python3.11 python3.11-distutils + pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && cd ./app/backend/ && pipenv install && pipenv run python -m pytest --disable-warnings - name: Pytest run: docker exec backend pipenv run python -m pytest -v # - name: Flake8