Skip to content

Commit 62f5625

Browse files
committed
Update CI and makefile to use u22.04 and py3.10
1 parent 2a12673 commit 62f5625

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ space_char +=
1414
comma := ,
1515
COMPONENT_PYTHONPATH = $(subst $(space_char),:,$(realpath $(COMPONENTS)))
1616

17-
PYTHON_TARGET := 3.6
17+
PYTHON_TARGET := 3.10
1818

1919
REQUIREMENTS := 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

0 commit comments

Comments
 (0)