File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,19 @@ jobs:
1919
2020 lint-checks :
2121 needs : pre_job
22- name : Make requirements and lint check on Python3.6
23- runs-on : ubuntu-18 .04
22+ name : Make requirements and lint check on Python3.10
23+ runs-on : ubuntu-22 .04
2424 steps :
2525 - name : Checkout st2tests repository
2626 uses : actions/checkout@v2
2727 - name : Checkout st2 repository
2828 uses : actions/checkout@v2
2929 with :
3030 repository : " StackStorm/st2"
31- - name : Set up Python3.6
32- uses : actions/setup-python@v2
31+ - name : Set up Python3.10
32+ uses : actions/setup-python@v4
3333 with :
34- python-version : ' 3.6.13 '
34+ python-version : ' 3.10.12 '
3535 - name : Install apt dependencies
3636 run : |
3737 sudo apt install -y libldap2-dev libsasl2-dev
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ space_char +=
1414comma := ,
1515COMPONENT_PYTHONPATH = $(subst $(space_char ) ,:,$(realpath $(COMPONENTS ) ) )
1616
17- PYTHON_TARGET := 3.6
17+ PYTHON_TARGET := 3.10
1818
1919REQUIREMENTS := test-requirements.txt requirements.txt
2020# Grab the version of pip from the Makefile in the st2 repository
@@ -107,8 +107,8 @@ requirements: virtualenv
107107
108108 # Install requirements
109109 for req in $(REQUIREMENTS); do \
110- echo "Installing $$req..." ; \
111- $(VIRTUALENV_DIR)/bin/pip install $(PIP_OPTIONS) -r $$req ; \
110+ echo "Installing $$req..." ; \
111+ $(VIRTUALENV_DIR)/bin/pip install $(PIP_OPTIONS) -r $$req ; \
112112 done
113113
114114.PHONY : virtualenv
@@ -117,7 +117,7 @@ $(VIRTUALENV_DIR)/bin/activate:
117117 @echo
118118 @echo " ==================== virtualenv ===================="
119119 @echo
120- test -d $(VIRTUALENV_DIR ) || virtualenv $(VIRTUALENV_DIR )
120+ test -d $(VIRTUALENV_DIR ) || python3 -m venv $(VIRTUALENV_DIR )
121121
122122 # Setup PYTHONPATH in bash activate script...
123123 echo '' >> $(VIRTUALENV_DIR)/bin/activate
You can’t perform that action at this time.
0 commit comments