Skip to content

Commit b1e0d9c

Browse files
committed
Test all suppported Python version and remove nose test monkey patching.
1 parent f663dd8 commit b1e0d9c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
include:
20-
- python-version-short: "3.8"
20+
- python-version-short: ["3.8", "3.9", "3.10", "3.11"]
2121
python-version: 3.8.17
2222
vault-version: "1.12.5-1"
2323
hvac-gh-tag: "v1.1.1"
@@ -82,22 +82,14 @@ jobs:
8282
ls -ld ${ROOT_DIR}/tests/${x}
8383
done
8484
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-
9385
- name: Run pack tests
9486
uses: StackStorm-Exchange/ci/.github/actions/test@master
9587
with:
9688
enable-common-libs: false
9789

9890
services:
9991
mongo:
100-
image: mongo:4.4
92+
image: mongo:7.0
10193
ports:
10294
- 27017:27017
10395
rabbitmq:

0 commit comments

Comments
 (0)