Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,25 @@ jobs:
# StackStorm-Exchange/ci/.github/workflows/pack-build_and_test.yaml@master

build_and_test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: 'Build and Test / Python ${{ matrix.python-version-short }}'
strategy:
matrix:
include:
- python-version-short: "3.8"
python-version: 3.8.17
python-version: 3.8.18
vault-version: "1.12.5-1"
hvac-gh-tag: "v1.1.1"
- python-version-short: "3.9"
python-version: 3.9.21
vault-version: "1.12.5-1"
hvac-gh-tag: "v1.1.1"
- python-version-short: "3.10"
python-version: 3.10.16
vault-version: "1.12.5-1"
hvac-gh-tag: "v1.1.1"
- python-version-short: "3.11"
python-version: 3.11.11
vault-version: "1.12.5-1"
hvac-gh-tag: "v1.1.1"
steps:
Expand Down Expand Up @@ -82,22 +94,14 @@ jobs:
ls -ld ${ROOT_DIR}/tests/${x}
done

- name: Update virtualenv activate script
# This works around an infinite recursion error with newer requests+ssl+eventlet.
# eventlet monkey_patch as early as possible (has to be in activate as nosetests gets reinstalled during test phase)
# See: https://github.com/StackStorm-Exchange/stackstorm-vault/pull/23
run: |
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
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

- name: Run pack tests
uses: StackStorm-Exchange/ci/.github/actions/test@master
with:
enable-common-libs: false

services:
mongo:
image: mongo:4.4
image: mongo:7.0
ports:
- 27017:27017
rabbitmq:
Expand Down
Loading