Extend integration tests job matrix

This commit is contained in:
Jorge-Rodriguez 2020-09-30 08:03:08 +03:00
parent 0f86c8ed8d
commit b8b7353ad9
No known key found for this signature in database
GPG key ID: 43153D1EFD8F7D90

View file

@ -16,6 +16,7 @@ on:
env:
mysql_version_file: "./ansible_collections/community/mysql/tests/integration/targets/setup_mysql/defaults/main.yml"
connector_version_file: "./ansible_collections/community/mysql/tests/integration/targets/setup_mysql/vars/main.yml"
jobs:
sanity:
@ -61,6 +62,12 @@ jobs:
- devel
python:
- 3.6
connector:
- pymysql==0.9.3
- mysqlclient==2.0.1
include:
- mysql: 5.7.31
connector: pymysql==0.7.10
steps:
- name: Check out code
@ -79,6 +86,9 @@ jobs:
- name: Set MySQL version (${{ matrix.mysql }})
run: "sed -i 's/^mysql_version:.*/mysql_version: \"${{ matrix.mysql }}\"/g' ${{ env.mysql_version_file }}"
- name: Set Connector version (${{ matrix.connector }})
run: "sed -i 's/^python_packages:.*/python_packages: [${{ matrix.connector }}]/' ${{ env.connector_version_file }}"
- name: Run integration tests
run: ansible-test integration --docker -v --color --retry-on-error --continue-on-error --python ${{ matrix.python }} --diff --coverage
working-directory: ./ansible_collections/community/mysql