Skip to content

Commit 92af8db

Browse files
authored
Switch from deprecated u2004 to u2204 image for github actions (#26)
2 parents 4ef80c1 + 9d3e9ec commit 92af8db

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,25 @@ jobs:
1212
# StackStorm-Exchange/ci/.github/workflows/pack-build_and_test.yaml@master
1313

1414
build_and_test:
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-22.04
1616
name: 'Build and Test / Python ${{ matrix.python-version-short }}'
1717
strategy:
1818
matrix:
1919
include:
2020
- python-version-short: "3.8"
21-
python-version: 3.8.17
21+
python-version: 3.8.18
22+
vault-version: "1.12.5-1"
23+
hvac-gh-tag: "v1.1.1"
24+
- python-version-short: "3.9"
25+
python-version: 3.9.21
26+
vault-version: "1.12.5-1"
27+
hvac-gh-tag: "v1.1.1"
28+
- python-version-short: "3.10"
29+
python-version: 3.10.16
30+
vault-version: "1.12.5-1"
31+
hvac-gh-tag: "v1.1.1"
32+
- python-version-short: "3.11"
33+
python-version: 3.11.11
2234
vault-version: "1.12.5-1"
2335
hvac-gh-tag: "v1.1.1"
2436
steps:
@@ -82,22 +94,14 @@ jobs:
8294
ls -ld ${ROOT_DIR}/tests/${x}
8395
done
8496
85-
- name: Update virtualenv activate script
86-
# This works around an infinite recursion error with newer requests+ssl+eventlet.
87-
# eventlet monkey_patch as early as possible (has to be in activate as nosetests gets reinstalled during test phase)
88-
# See: https://github.com/StackStorm-Exchange/stackstorm-vault/pull/23
89-
run: |
90-
echo "grep -q monkey_patch ${VIRTUALENV_DIR}/bin/nosetests || sed -i -e '/^import re$/i from st2common.util.monkey_patch import monkey_patch\nmonkey_patch()\n' ${VIRTUALENV_DIR}/bin/nosetests" >> ${VIRTUALENV_DIR}/bin/activate
91-
echo "grep -q pyopenssl\\.inject ${VIRTUALENV_DIR}/bin/nosetests || sed -i -e '/^import re$/i from urllib3.contrib import pyopenssl\npyopenssl.inject_into_urllib3()\n' ${VIRTUALENV_DIR}/bin/nosetests" >> ${VIRTUALENV_DIR}/bin/activate
92-
9397
- name: Run pack tests
9498
uses: StackStorm-Exchange/ci/.github/actions/test@master
9599
with:
96100
enable-common-libs: false
97101

98102
services:
99103
mongo:
100-
image: mongo:4.4
104+
image: mongo:7.0
101105
ports:
102106
- 27017:27017
103107
rabbitmq:

0 commit comments

Comments
 (0)