install python 3.11

This commit is contained in:
leehk 2025-04-13 20:40:43 +08:00
parent 2a50cc697d
commit 39b52fafac

View File

@ -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